Is this defined?

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,298
Messages
2,571,542
Members
48,283
Latest member
RitaVui655

Latest Threads

Top