Forum

StringFormat in a function-like macro

I'm wondering if there's a way to counter this : #define fun(X) StringFormat (X); string s = fun( "Help %s" , "Me" ); It goes too many arguments for function-like macro 'fun' 'StringFormat' - wrong parameters count which is what's supposed to happen, but how to define the macro so the second line

Namespace variable bug ?

Why only classes and functions are allowed in namespaces unlike variables ? namespace A { int x; } namespace B { int x; }