This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] libstdc++/40221
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Fri, 22 May 2009 00:22:53 -0700
- Subject: [v3] libstdc++/40221
Looks like I missed a spot yesterday.
tested x86_64/linux
-benjamin
2009-05-21 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/40221
* include/tr1_impl/functional: Add explicit cast.
Index: include/tr1_impl/functional
===================================================================
--- include/tr1_impl/functional (revision 147775)
+++ include/tr1_impl/functional (working copy)
@@ -1989,7 +1989,7 @@
function(const function& __x)
: _Function_base()
{
- if (__x)
+ if (static_cast<bool>(__x))
{
_M_invoker = __x._M_invoker;
_M_manager = __x._M_manager;