A
abir
Hi,
This is not strictly a C++ language question.
Is there any way to form a string from an identifier with the
preprocessor with some operations ?
i.e to say to make a string from an identifier ID i use #ID.
Thats ok, but what if i want to alter it a little.
like if i have an identifier myID , and i want to generate an string
MYID (or any other form) from it.
I am also interested to know if it can be done using template also ,
i.e myID -> myID (string, using preprocessor) -> MYID (using
template) .
I am interested in a compile time solution, runtime one is trivial.
thanks
abir basak
This is not strictly a C++ language question.
Is there any way to form a string from an identifier with the
preprocessor with some operations ?
i.e to say to make a string from an identifier ID i use #ID.
Thats ok, but what if i want to alter it a little.
like if i have an identifier myID , and i want to generate an string
MYID (or any other form) from it.
I am also interested to know if it can be done using template also ,
i.e myID -> myID (string, using preprocessor) -> MYID (using
template) .
I am interested in a compile time solution, runtime one is trivial.
thanks
abir basak