Re:Re: Additionally
The pointer will be used more for reference; in another class I
have funtions that take the ID of an object using the funtion.
It is easier to have the template as a class than put a template
in all classes that take a void* reference.
Anyway, I am encountering a problem with my class. I have it working perfectly as of now, however if I add any additional
declarations I will get return errors with the functions.
Declarations before:
private:
bool PointerIsSet;
void *Pointer;
char *PointerType;
time_t IDTime;
int PID;
Declarations after:
private:
bool PointerIsSet;
void *Pointer, *POwner;
char *PointerType;
time_t IDTime;
int PID;
With the addition of the *POwner declaration the class either
does not function (will compile either way), or the methods
don't consistently return values. What I have tried:
1. change void *POwner declaration to int POwner
2. change name of POwner to a random word
3. declare it on its own line
4. Set its value in the constructors
I still got the same result, but when I deleted the declaration
it worked fine. After declaring/removing the additional
void*/int several times the class did not function at all, even
though it was the same code as when it worked. I ended up
having to revert to a saved copy, which worked, but still got
the errors with the additional declarations.
Does this sound like my error or a system error? Thanks
ta0kira