summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-22 07:19:37 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-22 07:19:37 +0000
commit4d4913ed971aaf95bf2498cdacb5af7065861ec0 (patch)
tree8dfad1495f163a4a502d7bf3fd91c6a402ba8381 /libstdc++-v3/include
parentf9b3b191ac10891c7a83b570a67fe71889566078 (diff)
downloadgcc-4d4913ed971aaf95bf2498cdacb5af7065861ec0.tar.gz
2009-05-21 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/40221 * include/tr1_impl/functional: Add explicit cast. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147794 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/tr1_impl/functional2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/tr1_impl/functional b/libstdc++-v3/include/tr1_impl/functional
index 75a6fdfdf87..980061d6902 100644
--- a/libstdc++-v3/include/tr1_impl/functional
+++ b/libstdc++-v3/include/tr1_impl/functional
@@ -1989,7 +1989,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
function(const function& __x)
: _Function_base()
{
- if (__x)
+ if (static_cast<bool>(__x))
{
_M_invoker = __x._M_invoker;
_M_manager = __x._M_manager;