S
swellfr
Hi
if have simple macro defined this way:
#define M_OPplus( classname ) typedef classname operator+(const
classname& rhs);
and a template class :
template<typename X, typename Y>
class Test1
{
public:
double run();
M_OPplus( Test1<X,Y> )
};
The compiler (VS2003) is complaining : warning C4002: too many actual
parameters for macro, . I think it is related to the comma in the
middle , the preprocessor may think that i am passing two parameters
to the macro.
Is it possible to fix it and does it conform with the C++ standart?
Many Thx
if have simple macro defined this way:
#define M_OPplus( classname ) typedef classname operator+(const
classname& rhs);
and a template class :
template<typename X, typename Y>
class Test1
{
public:
double run();
M_OPplus( Test1<X,Y> )
};
The compiler (VS2003) is complaining : warning C4002: too many actual
parameters for macro, . I think it is related to the comma in the
middle , the preprocessor may think that i am passing two parameters
to the macro.
Is it possible to fix it and does it conform with the C++ standart?
Many Thx