Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85918 - trunk/boost/type_traits/detail
From: steveire_at_[hidden]
Date: 2013-09-25 17:14:42


Author: skelly
Date: 2013-09-25 17:14:42 EDT (Wed, 25 Sep 2013)
New Revision: 85918
URL: http://svn.boost.org/trac/boost/changeset/85918

Log:
TypeTraits: Port away from obsolete macro.

Text files modified:
   trunk/boost/type_traits/detail/size_t_trait_def.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/type_traits/detail/size_t_trait_def.hpp
==============================================================================
--- trunk/boost/type_traits/detail/size_t_trait_def.hpp Wed Sep 25 17:14:24 2013 (r85917)
+++ trunk/boost/type_traits/detail/size_t_trait_def.hpp 2013-09-25 17:14:42 EDT (Wed, 25 Sep 2013) (r85918)
@@ -18,14 +18,14 @@
 
 #include <cstddef>
 
-#define BOOST_TT_AUX_SIZE_T_BASE(C) public ::boost::integral_constant<std::size_t,C>
 // Obsolete. Remove.
+#define BOOST_TT_AUX_SIZE_T_BASE(C) public ::boost::integral_constant<std::size_t,C>
 #define BOOST_TT_AUX_SIZE_T_TRAIT_VALUE_DECL(C) /**/
 
 
 #define BOOST_TT_AUX_SIZE_T_TRAIT_DEF1(trait,T,C) \
 template< typename T > struct trait \
- : BOOST_TT_AUX_SIZE_T_BASE(C) \
+ : public ::boost::integral_constant<std::size_t,C> \
 { \
 public:\
     BOOST_MPL_AUX_LAMBDA_SUPPORT(1,trait,(T)) \
@@ -36,7 +36,7 @@
 
 #define BOOST_TT_AUX_SIZE_T_TRAIT_SPEC1(trait,spec,C) \
 template<> struct trait<spec> \
- : BOOST_TT_AUX_SIZE_T_BASE(C) \
+ : public ::boost::integral_constant<std::size_t,C> \
 { \
 public:\
     BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(1,trait,(spec)) \
@@ -45,7 +45,7 @@
 
 #define BOOST_TT_AUX_SIZE_T_TRAIT_PARTIAL_SPEC1_1(param,trait,spec,C) \
 template< param > struct trait<spec> \
- : BOOST_TT_AUX_SIZE_T_BASE(C) \
+ : public ::boost::integral_constant<std::size_t,C> \
 { \
 }; \
 /**/


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