hi all,
I´m using a std::set in a simple aplication in VC6.0. I´m not using MFC neither precompiled headers. The problem is that the compile complains when I include <set> the error is c:\program files\microsoft visual studio\vc98\include\functional(16) : error C2143: syntax error : missing '{' before '<'
c:\program files\microsoft visual studio\vc98\include\functional(16) : error C2059: syntax error : '<' that repeat several times. The first time is on the line 16 that has:It occurs on file functional.h that is an include of set.h. I´m gessing that the compiler is not recognizing the template but I verified on the compiler options and I haven´t found a compiler parameter to set it. How to fix it??Code:_STD_BEGIN // TEMPLATE STRUCT unary_function template<class _A, class _R> //<=====that is the line 16. struct unary_function { typedef _A argument_type; typedef _R result_type; }; ...
thank you in advance.




Reply With Quote