X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libstdc%2B%2B-v3%2Finclude%2Ftr1_impl%2Ffunctional;h=584a403de487f09ad335d7bdb41ed03393411671;hp=980061d69027c003412ff6e86e4de69e2db70d42;hb=3057983e78ae74fdcab4eb0a58d5c2fa57953cf1;hpb=df6a1b5f74f04245b9d9a046a78835ee472c85e6;ds=sidebyside diff --git a/libstdc++-v3/include/tr1_impl/functional b/libstdc++-v3/include/tr1_impl/functional index 980061d6902..584a403de48 100644 --- a/libstdc++-v3/include/tr1_impl/functional +++ b/libstdc++-v3/include/tr1_impl/functional @@ -1557,7 +1557,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1 template static bool _M_not_empty_function(const function<_Signature>& __f) - { return __f; } + { return static_cast(__f); } template static bool @@ -2095,13 +2095,13 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1 template inline bool operator==(const function<_Signature>& __f, _M_clear_type*) - { return !__f; } + { return !static_cast(__f); } /// @overload template inline bool operator==(_M_clear_type*, const function<_Signature>& __f) - { return !__f; } + { return !static_cast(__f); } /** * @brief Compares a polymorphic function object wrapper against 0 @@ -2113,13 +2113,13 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1 template inline bool operator!=(const function<_Signature>& __f, _M_clear_type*) - { return __f; } + { return static_cast(__f); } /// @overload template inline bool operator!=(_M_clear_type*, const function<_Signature>& __f) - { return __f; } + { return static_cast(__f); } // [3.7.2.8] specialized algorithms