Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62564 - trunk/boost/thread
From: anthony_at_[hidden]
Date: 2010-06-08 09:06:59


Author: anthonyw
Date: 2010-06-08 09:06:58 EDT (Tue, 08 Jun 2010)
New Revision: 62564
URL: http://svn.boost.org/trac/boost/changeset/62564

Log:
Removed commented out code

Text files modified:
   trunk/boost/thread/locks.hpp | 94 ----------------------------------------
   1 files changed, 0 insertions(+), 94 deletions(-)

Modified: trunk/boost/thread/locks.hpp
==============================================================================
--- trunk/boost/thread/locks.hpp (original)
+++ trunk/boost/thread/locks.hpp 2010-06-08 09:06:58 EDT (Tue, 08 Jun 2010)
@@ -64,100 +64,6 @@
         BOOST_DEFINE_HAS_MEMBER_CALLED(unlock);
         BOOST_DEFINE_HAS_MEMBER_CALLED(try_lock);
 
-
- // template<typename T, bool=boost::is_class<T>::value>
- // struct has_member_called_lock
- // {
- // BOOST_STATIC_CONSTANT(bool, value=false);
- // };
-
- // template<typename T>
- // struct has_member_called_lock<T,true>
- // {
- // typedef char true_type;
- // struct false_type
- // {
- // true_type dummy[2];
- // };
-
- // struct fallback { int lock; };
- // struct derived:
- // T, fallback
- // {};
-
- // template<int fallback::*> struct tester;
-
- // template<typename U>
- // static false_type has_member(tester<&U::lock>*);
- // template<typename U>
- // static true_type has_member(...);
-
- // BOOST_STATIC_CONSTANT(
- // bool, value=sizeof(has_member<derived>(0))==sizeof(true_type));
- // };
-
- // template<typename T, bool=boost::is_class<T>::value>
- // struct has_member_called_unlock
- // {
- // BOOST_STATIC_CONSTANT(bool, value=false);
- // };
-
- // template<typename T>
- // struct has_member_called_unlock<T,true>
- // {
- // typedef char true_type;
- // struct false_type
- // {
- // true_type dummy[2];
- // };
-
- // struct fallback { int unlock; };
- // struct derived:
- // T, fallback
- // {};
-
- // template<int fallback::*> struct tester;
-
- // template<typename U>
- // static false_type has_member(tester<&U::unlock>*);
- // template<typename U>
- // static true_type has_member(...);
-
- // BOOST_STATIC_CONSTANT(
- // bool, value=sizeof(has_member<derived>(0))==sizeof(true_type));
- // };
-
- // template<typename T, bool=boost::is_class<T>::value>
- // struct has_member_called_try_lock
- // {
- // BOOST_STATIC_CONSTANT(bool, value=false);
- // };
-
- // template<typename T>
- // struct has_member_called_try_lock<T,true>
- // {
- // typedef char true_type;
- // struct false_type
- // {
- // true_type dummy[2];
- // };
-
- // struct fallback { int try_lock; };
- // struct derived:
- // T, fallback
- // {};
-
- // template<int fallback::*> struct tester;
-
- // template<typename U>
- // static false_type has_member(tester<&U::try_lock>*);
- // template<typename U>
- // static true_type has_member(...);
-
- // BOOST_STATIC_CONSTANT(
- // bool, value=sizeof(has_member<derived>(0))==sizeof(true_type));
- // };
-
         template<typename T,bool=has_member_called_lock<T>::value >
         struct has_member_lock
         {


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