Error when expanding macro with __VA_ARGS__
807575Jun 1 2006 — edited Jun 1 2006SUN experts:-)
I define a macro to implement some specific functionality..see following..
#define log( ... ) log2( __FILE__, __LINE__, __VA_ARGS__ )
When expanding macro with class operator ::, "::" will be converted into ":". Very strange...
For example,
log( "%s", A::name())
After preprocessing,
log(.., .. , "%s", A:name())
As we can see, after preprocessing, this can not compile yet...
my CC compiler version:
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-11 2002/10/31
Is it a known bug?
Is there some patch i need to put to fix this bug?
Thanks