hey, i'm trying to compile my work and i'm getting this error : function template has already been defined and it's written about all my template functions. any idea what can cause such thing?
A:
It means you've defined two generic methods with the same name and signature. Without more info, I can't help further, although this article might help a lot.
Randolpho
2010-09-21 18:45:24
+6
A:
Have you placed the following around your header files:
#ifndef PUTSTUFFINHERE
#define PUTSTUFFINHERE
//your code
#endif
Without more information I can't help you further.
wheaties
2010-09-21 18:49:44
Need to go in the CPP files as well for template programming...
Chris Thompson
2010-09-21 18:50:51
Solved, thanks, my #endif was in the wrong place.
Roy Gavrielov
2010-09-21 18:56:40