[Bug libstdc++/56193] ios_base should replace operator void* with explicit operator bool in C++11 onwards.
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jun 26 05:57:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56193
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #8 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
ping 2014.
I just noticed the same problem that in C++11 code (and beyond) the following
code compiles due to the existence of the implicit conversion to void*:
#include <iostream>
bool test = (std::cout == std::cerr);
More information about the Gcc-bugs
mailing list