If I include <iostream> first and then <sstream> all std::cout become undefined.
When I reverse the order of includes it gets resolved.
It shouldn't do than.
And it won't for me. What IDE/compiler do you use?
The following both would work, provided you include them prior to their usage.
I suspect you have come across a different problem.
Thanks MiiNiPaa and jaded7.
I'm using VS2012.
I suspect too that it is something else.
I reversed it again later and there was no problem.
Topic archived. No new replies allowed.