C++, Templates, Preprocessor on the SGI (cfront)

Thant Tessman thant at horus.esd.sgi.com
Sat Jun 29 01:34:35 AEST 1991


I stole this from another program.  I don't know enough to know why
it works, but it does.


#ifdef __ANSI_CPP__
#define CAT(a,b) a##b
#else
#define IDENT(a) a
#define CAT(a,b) IDENT(a)b
#endif


Then I just use CAT(a,b)

thant



More information about the Comp.sys.sgi mailing list