This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH, PR56193] - Wrong test operator for basic_ios in C++11
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Ed Smith-Rowland <3dw4rd at verizon dot net>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 7 Feb 2013 09:18:51 +0000
- Subject: Re: [PATCH, PR56193] - Wrong test operator for basic_ios in C++11
- References: <51131A02.7020104@verizon.net>
On 7 February 2013 03:05, Ed Smith-Rowland wrote:
> 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.
Please use -std=gnu++11 in the test's dg-options and CC the
gcc-patches list too.
OK for trunk with that change, thanks.