Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: C++'s include system can get a little annoying at times...  (Read 813 times)

0 Members and 1 Guest are viewing this topic.
C++'s include system can get a little annoying a...
« on: October 30, 2008, 12:27:43 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
I have a Linked List class, which I want to inherit from IMMObject so that it can be used with some specially written Garbage collection pointers, but the problem with this is that IMMObject contains a static Linked List of this class which it uses to store the pointers ready for garbage collection.

Now, this just throws annoying errors at me because the classes aren't recognised yadda yadda yadda...any way around this short of writing the Linked List part of IMMObject by hand or taking advantage of multiple inheritance and creating a seperate CMMLinkedList<> class?
« Last Edit: October 30, 2008, 12:34:54 pm by TheDarkJay »
Logged
Re: ARGH!!! Damn C++ and it's include-system! DA...
« Reply #1 on: October 30, 2008, 12:30:51 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
is the staticly linked list a pointer?
if so just shove
Code: [Select]
class LinkedListClass;above the IMMObject class
Logged
Re: C++'s include system can get a little annoyi...
« Reply #2 on: October 30, 2008, 12:38:26 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
*facepalm* Dammit, I knew I was having a stupid moment. I thought of that but put extern before it, thinking I...well, my train of thought there was obvious...goddamnit, thanks :D

Here, have an internet.


*lock'd*
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.052 seconds with 40 queries.