Name: Anonymous 2010-11-03 18:54
I'm mentally fucked right now and need to get the first item from 1 array of type T in 1 class into a pointer of type T in another
I feel dum
first class is bag<T>
I have a function to return data[0] called T bag<T>getFirst
now into the sequence class
bag<T>* a = new bag<T>;
T* = a.getFirst();
seq.cpp:6: error: request for member `getFirst' in `((sequence<int>*)this)->sequence<int>::a', which is of non-class type `bag<int>*'I feel dum