c++.beta - preprocessing # operator
- Richard Grant (12/12) Mar 27 2003 Applies to current release version.
- Walter (5/17) Mar 27 2003 I've seen this before, and in my opinion that effect is not supported by...
Applies to current release version. Following produces "test .hpp". But it should be "test.hpp" #include <iostream> #define STRINGIZE(x) DO_STRINGIZE(x) #define DO_STRINGIZE(x) #x #define TRANSFORM(x) STRINGIZE(x.hpp) int main() { std::cout << TRANSFORM(test) << std::endl; } A work around is: #define Richard
Mar 27 2003
I've seen this before, and in my opinion that effect is not supported by the concatenate tokens. "Richard Grant" <fractal clark.net> wrote in message news:b5us29$1ff5$1 digitaldaemon.com...Applies to current release version. Following produces "test .hpp". But it should be "test.hpp" #include <iostream> #define STRINGIZE(x) DO_STRINGIZE(x) #define DO_STRINGIZE(x) #x #define TRANSFORM(x) STRINGIZE(x.hpp) int main() { std::cout << TRANSFORM(test) << std::endl; } A work around is: #define Richard
Mar 27 2003