R
Razzer
Recently, I saw someone use this marco:
#define MAKE_STRING(msg) \
(((ostringstream&)(ostringstream()<<msg)).str())
(Assume that the std namespace had been brought into the global scope.)
My question is that if this is defined. I think isn't. It seems to me
that the temporary is being passed around to non-const references
during its lifetime. Am I just plain wrong?
#define MAKE_STRING(msg) \
(((ostringstream&)(ostringstream()<<msg)).str())
(Assume that the std namespace had been brought into the global scope.)
My question is that if this is defined. I think isn't. It seems to me
that the temporary is being passed around to non-const references
during its lifetime. Am I just plain wrong?