Hi all,
I am very lazy and often use macros of the following kind:
#define PRINTV(V) { std::cout << #V<<"="<<V << std::endl; }
Unfortunately CINT doesn’t seem to recognise the ‘#’ modifier. Am I doing something wrong, or is this not implemented?
Cheers, Rolf
Hello Rolf,
Cint has limitation in handling macros like that. (SEE doc/limitati.txt,
preprocessor statements, in cint source package.)
#define PRINTV(V) { std::cout << #V<<"="<<V << std::endl; }
Please use template instead.
template void PRINTV(T& V) { std::cout << #V<<"="<<V << std::endl; }
Thank you
Masa Goto