On Fri, Sep 12, 2014 at 4:23 AM, Eduardo Hernandez
<eduardo.hernan...@csic.es> wrote:
>
> This line of code has been in the library forever and never given us
> any trouble, but now that I look at it closely I'm not sure you are
> allowed to compare two streams for equality like this.  Can you try
> changing that line of code to:
>
> if (os.rdbuf() == std::cout.rdbuf())
>
> instead, and see if your compiler likes that any better?
>
>
> Yes! This did the trick! I have now managed to compile and run the tests and 
> everything seems to be fine now. Thank you very much for your assistance.

I'm glad it works.

After some additional testing, this appears to be code that fails in
clang with -std=c++0x and -std=c++11, but works otherwise.  GCC 4.7
still seems to accept it for all -std options.

Possibly they have done something in the new C++ standard to
explicitly delete/disable this behavior.

-- 
John

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to