This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, PR56193] - Wrong test operator for basic_ios in C++11


greetings,

On SO someone noticed that g++ still has in the basic_ios class
  operator void*();
instead of
  explicit operator bool() const;
The old C++98 operator allows things like
  std::cout << std::cout;

This patch changes the stream test operator for C++11 and onwards.

This patch builds and tests clean on x86_64-unknown-linux.

Ed

Attachment: patch_basic_ios_bool_2
Description: Text document

Attachment: CL_basic_ios_bool
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]