help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with logging macros, compiles fine with gcc 2.95.1, fails wi


From: address@hidden
Subject: Re: Problem with logging macros, compiles fine with gcc 2.95.1, fails with 3.4.4
Date: 8 Mar 2006 09:32:51 -0800
User-agent: G2/0.2

Sorry if I don't correctly understand your problem. Are you trying to
do something like the following?

#define x(y) (#y)

int main() {
   char buf[100] = x(TemplateClass<SpecializationClass>);
   printf("%s\n", buf);
}

If you're relying on old preproccesor behavior, you could try to
-traditional-cpp.

You should compile with the -E option and have a look at the code
produced after preprocessing.

Regards,

Ryan Mansfield



reply via email to

[Prev in Thread] Current Thread [Next in Thread]