Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66349 - sandbox/function/boost/function/detail
From: dsaritz_at_[hidden]
Date: 2010-11-02 06:10:44


Author: psiha
Date: 2010-11-02 06:10:40 EDT (Tue, 02 Nov 2010)
New Revision: 66349
URL: http://svn.boost.org/trac/boost/changeset/66349

Log:
Fixed compilation errors.
Minor refactoring.
Text files modified:
   sandbox/function/boost/function/detail/safe_bool.hpp | 13 +++++--------
   1 files changed, 5 insertions(+), 8 deletions(-)

Modified: sandbox/function/boost/function/detail/safe_bool.hpp
==============================================================================
--- sandbox/function/boost/function/detail/safe_bool.hpp (original)
+++ sandbox/function/boost/function/detail/safe_bool.hpp 2010-11-02 06:10:40 EDT (Tue, 02 Nov 2010)
@@ -115,11 +115,10 @@
         template <typename implicit_bool>
         static type make( implicit_bool const value )
         {
- return make_safe_bool_worker( !!value, can_use_fast_bool_hack() );
+ return make( !!value );
         }
 
- template <>
- static type make<bool>( bool const value )
+ static type make( bool const value )
         {
             return make_safe_bool_worker( value, can_use_fast_bool_hack() );
         }
@@ -130,11 +129,10 @@
         template <typename implicit_bool>
         static type make( implicit_bool const value )
         {
- return make_safe_bool_worker( !!value );
+ return make( !!value );
         }
 
- template <>
- static type make<bool>( bool const value )
+ static type make( bool const value )
         {
             return value ? &unspecified_bool_type_helper::member_data_ : 0;
         }
@@ -150,8 +148,7 @@
         return !!value;
     }
 
- template <>
- static type make<bool>( bool const value )
+ static type make( bool const value )
     {
         return value;
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk