OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2009-05-27 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git]
/
libstdc++-v3
/
include
/
tr1_impl
/
functional
diff --git
a/libstdc++-v3/include/tr1_impl/functional
b/libstdc++-v3/include/tr1_impl/functional
index
980061d
..
584a403
100644
(file)
--- a/
libstdc++-v3/include/tr1_impl/functional
+++ b/
libstdc++-v3/include/tr1_impl/functional
@@
-1557,7
+1557,7
@@
_GLIBCXX_BEGIN_NAMESPACE_TR1
template<typename _Signature>
static bool
_M_not_empty_function(const function<_Signature>& __f)
template<typename _Signature>
static bool
_M_not_empty_function(const function<_Signature>& __f)
-
{ return __f
; }
+
{ return static_cast<bool>(__f)
; }
template<typename _Tp>
static bool
template<typename _Tp>
static bool
@@
-2095,13
+2095,13
@@
_GLIBCXX_BEGIN_NAMESPACE_TR1
template<typename _Signature>
inline bool
operator==(const function<_Signature>& __f, _M_clear_type*)
template<typename _Signature>
inline bool
operator==(const function<_Signature>& __f, _M_clear_type*)
- { return !
__f
; }
+ { return !
static_cast<bool>(__f)
; }
/// @overload
template<typename _Signature>
inline bool
operator==(_M_clear_type*, const function<_Signature>& __f)
/// @overload
template<typename _Signature>
inline bool
operator==(_M_clear_type*, const function<_Signature>& __f)
- { return !
__f
; }
+ { return !
static_cast<bool>(__f)
; }
/**
* @brief Compares a polymorphic function object wrapper against 0
/**
* @brief Compares a polymorphic function object wrapper against 0
@@
-2113,13
+2113,13
@@
_GLIBCXX_BEGIN_NAMESPACE_TR1
template<typename _Signature>
inline bool
operator!=(const function<_Signature>& __f, _M_clear_type*)
template<typename _Signature>
inline bool
operator!=(const function<_Signature>& __f, _M_clear_type*)
- { return
__f
; }
+ { return
static_cast<bool>(__f)
; }
/// @overload
template<typename _Signature>
inline bool
operator!=(_M_clear_type*, const function<_Signature>& __f)
/// @overload
template<typename _Signature>
inline bool
operator!=(_M_clear_type*, const function<_Signature>& __f)
- { return
__f
; }
+ { return
static_cast<bool>(__f)
; }
// [3.7.2.8] specialized algorithms
// [3.7.2.8] specialized algorithms