views:

80

answers:

2

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
+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
Need to go in the CPP files as well for template programming...
Chris Thompson
Solved, thanks, my #endif was in the wrong place.
Roy Gavrielov