Replace boost.type_traits with std::type_traits
authorkhizmax <libcds.dev@gmail.com>
Tue, 4 Nov 2014 06:35:41 +0000 (09:35 +0300)
committerkhizmax <libcds.dev@gmail.com>
Tue, 4 Nov 2014 06:35:41 +0000 (09:35 +0300)
cds/compiler/cxx11_atomic.h

index 120e943..08cdd3a 100644 (file)
@@ -4,6 +4,7 @@
 #define __CDS_COMPILER_CXX11_ATOMIC_H
 //@cond
 
+#include <type_traits>  // make_unsigned
 #include <cds/details/defs.h>
 #include <cds/details/aligned_type.h>
 
@@ -48,9 +49,6 @@ namespace cds { namespace cxx11_atomic {
 #   error "Undefined compiler"
 #endif
 
-// In C++11, make_unsigned is declared in <type_traits>
-#include <boost/type_traits/make_unsigned.hpp>  // for make_unsigned
-
 namespace cds { namespace cxx11_atomic {
 
     // forward declarations
@@ -160,7 +158,7 @@ namespace cds { namespace cxx11_atomic {
         struct atomic_integral_bitwise_ops
         {
         public:
-            typedef typename boost::make_unsigned<T>::type unsigned_type;
+            typedef typename std::make_unsigned<T>::type unsigned_type;
             typedef atomic_generic_ops<unsigned_type, sizeof(unsigned_type)> atomic_ops;
 
             static T fetch_and(T volatile * pDest, T val, memory_order order) CDS_NOEXCEPT