M
martin.brodeur
I unable to pass a template type with two parameters to a very simple
macro with g++ 3.4 (Linux x86):
for example:
#define THIS_IS_A_MACRO(token) BOOST_PP_STRINGIZE(token)
void foo()
{
THIS_IS_A_MACRO(tracked::TrackedBasicType<int>); // this works
THIS_IS_A_MACRO(tracked::TrackedBasicType2<int,char>); // this
doesn't
// g++ complains this: macro "THIS_IS_A_MACRO" passed 2 arguments,
but takes just 1
}
Is there a way to pass templatized types (with multiple params) to a
macro definition ?
thanks in advance.
MB
macro with g++ 3.4 (Linux x86):
for example:
#define THIS_IS_A_MACRO(token) BOOST_PP_STRINGIZE(token)
void foo()
{
THIS_IS_A_MACRO(tracked::TrackedBasicType<int>); // this works
THIS_IS_A_MACRO(tracked::TrackedBasicType2<int,char>); // this
doesn't
// g++ complains this: macro "THIS_IS_A_MACRO" passed 2 arguments,
but takes just 1
}
Is there a way to pass templatized types (with multiple params) to a
macro definition ?
thanks in advance.
MB