#define GLOBAL_str_intermediate(s) #s #define GLOBAL_str(s) GLOBAL_str_intermediate(s) GLOBAL_str(A<B,C>) - error expected 1 argument while passed 2. While want to return "A<B,C>" 2012/8/6 Ian Lance Taylor <iant@xxxxxxxxxx>: > On Mon, Aug 6, 2012 at 2:32 AM, Sergey Ivanov <icegood1980@xxxxxxxxx> wrote: >> I'm checkin input of some class name in file. But class name could be >> template with >1 arguments, say, A<B,C>. >> How to stringify that in preprocessor? > > Give us a code example of what you are trying to do. > > Ian -- Kind regards, Sergey Ivanov