iostream+sstream
Feb 1, 2013 at 3:02am UTC
Hi,
If I include <iostream> first and then <sstream> all std::cout become undefined.
When I reverse the order of includes it gets resolved.
Why?
Daniel
Feb 1, 2013 at 7:22am UTC
It shouldn't do than.
And it won't for me. What IDE/compiler do you use?
Feb 1, 2013 at 7:25am UTC
The following both would work, provided you include them prior to their usage.
1.
1 2
#include <iostream>
#include <sstream>
2.
1 2
#include <sstream>
#include <iostream>
I suspect you have come across a different problem.
Feb 4, 2013 at 9:28pm UTC
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.