This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] Alter libstdc++ test to work after c++/67216 fix
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Aug 2015 14:49:05 +0200
- Subject: Re: [patch] Alter libstdc++ test to work after c++/67216 fix
- Authentication-results: sourceware.org; auth=none
- References: <20150818124149 dot GD27791 at redhat dot com>
Hi,
On 08/18/2015 02:41 PM, Jonathan Wakely wrote:
With Paolo's fix the use of the safe-bool idiom in this test no longer
compiles in C++11 or C++14. The requirement in TR1 is that it works
"in a boolean context" and p1 == false is not necessarily a boolean
context. Do an explicit conversion to make it valid in all modes.
Thanks Jon and sorry about the breakage!
Paolo.