Could you please point out to me what is wrong with the following template class?
#include <vector>
template <typename T, typename C>
struct pQueue{
pQueue():currEnd(c.end()){};
~pQueue(){c.~vector();}
void insert(T& t);
void remove(T& t);
bool find(T& t);
T head(void);
private:
std::vector<T> c;
std::vector<T>::iterator currEnd;
};
The compiler isn't very happy about the std::vector<T>::iterator currEnd;
line, and produces the following error messages:
error C2146: syntax error : missing ';' before identifier 'currEnd'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Thank you very much!