Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83138 - in trunk: boost/tti/detail libs/tti/test
From: eldiener_at_[hidden]
Date: 2013-02-24 12:01:18


Author: eldiener
Date: 2013-02-24 12:01:17 EST (Sun, 24 Feb 2013)
New Revision: 83138
URL: http://svn.boost.org/trac/boost/changeset/83138

Log:
Updated member data metafunction.
Text files modified:
   trunk/boost/tti/detail/dmem_data.hpp | 7 ++-
   trunk/libs/tti/test/Jamfile.v2 | 80 +++++++++++++++++++++++++++++++++++++++-
   2 files changed, 82 insertions(+), 5 deletions(-)

Modified: trunk/boost/tti/detail/dmem_data.hpp
==============================================================================
--- trunk/boost/tti/detail/dmem_data.hpp (original)
+++ trunk/boost/tti/detail/dmem_data.hpp 2013-02-24 12:01:17 EST (Sun, 24 Feb 2013)
@@ -8,6 +8,7 @@
 #define BOOST_TTI_DETAIL_MEM_DATA_HPP
 
 #include <boost/config.hpp>
+#include <boost/detail/workaround.hpp>
 #include <boost/function_types/components.hpp>
 #include <boost/function_types/is_member_object_pointer.hpp>
 #include <boost/mpl/assert.hpp>
@@ -21,7 +22,7 @@
 #include <boost/type_traits/detail/yes_no_type.hpp>
 #include <boost/type_traits/is_same.hpp>
 
-#if defined(BOOST_MSVC)
+#if defined(BOOST_MSVC) || (BOOST_WORKAROUND(BOOST_GCC, >= 40400) && BOOST_WORKAROUND(BOOST_GCC, < 40600))
 
 #define BOOST_TTI_DETAIL_TRAIT_HAS_MEMBER_DATA(trait,name) \
   template<class T,class C> \
@@ -30,8 +31,8 @@
     template<class> \
     struct return_of; \
     \
- template<class R,class C> \
- struct return_of<R C::*> \
+ template<class R,class IC> \
+ struct return_of<R IC::*> \
       { \
       typedef R type; \
       }; \

Modified: trunk/libs/tti/test/Jamfile.v2
==============================================================================
--- trunk/libs/tti/test/Jamfile.v2 (original)
+++ trunk/libs/tti/test/Jamfile.v2 2013-02-24 12:01:17 EST (Sun, 24 Feb 2013)
@@ -18,6 +18,10 @@
                                  <toolset>gcc-4.5.0:<linkflags>"-Wl,--enable-auto-import"
                                  <toolset>gcc-4.5.2:<cxxflags>-Wno-variadic-macros
                                  <toolset>gcc-4.6.0:<cxxflags>-Wno-variadic-macros
+ <toolset>gcc-4.6.1:<cxxflags>-Wno-variadic-macros
+ <toolset>gcc-4.6.2:<cxxflags>-Wno-variadic-macros
+ <toolset>gcc-4.7.0:<cxxflags>-Wno-variadic-macros
+ <toolset>gcc-4.7.2:<cxxflags>-Wno-variadic-macros
                                  ;
                                  
 #
@@ -69,7 +73,7 @@
     ;
 
 #
-# Member functions specific syntax
+# Member functions specific syntax, cv-qualified
 #
 alias ttimfncv
     :
@@ -199,7 +203,7 @@
 #
 # All of tti, non-variadic macros
 #
-alias tti : ttimfsig ttimd ttimfn ttismfsig ttismd ttismfn ttitmp ttitmpcp ttity ttimemty ;
+alias tti : ttimfsig ttimfsigcv ttimd ttimfn ttimfncv ttismfsig ttismd ttismfn ttidata ttifun ttitmp ttitmpcp ttity ttimemty ;
 
 alias ttitmpv : :
         <toolset>gcc
@@ -224,6 +228,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_v ]
         [ compile test_has_template_compile.cpp :
@@ -234,6 +242,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_compile_v ]
         [ compile-fail test_has_template_fail.cpp :
@@ -244,6 +256,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_fail_v ]
         [ compile-fail test_has_template_fail2.cpp :
@@ -254,6 +270,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_fail2_v ]
         [ compile-fail test_has_template_fail3.cpp :
@@ -264,6 +284,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_fail3_v ]
         [ compile-fail test_has_template_fail4.cpp :
@@ -274,6 +298,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_fail4_v ]
     ;
@@ -301,6 +329,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_cp_v ]
         [ compile test_has_template_cp_compile.cpp :
@@ -311,6 +343,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_cp_compile_v ]
         [ compile-fail test_has_template_cp_fail.cpp :
@@ -321,6 +357,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_cp_fail_v ]
         [ compile-fail test_has_template_cp_fail2.cpp :
@@ -331,6 +371,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_cp_fail2_v ]
         [ compile-fail test_has_template_cp_fail3.cpp :
@@ -341,6 +385,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_cp_fail3_v ]
         [ compile-fail test_has_template_cp_fail4.cpp :
@@ -351,6 +399,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 :
           test_has_template_cp_fail4_v ]
     ;
@@ -378,6 +430,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 ]
         [ compile test_vm_has_template_cp_compile.cpp :
           <toolset>gcc-4.3.0:<cxxflags>-std=c++0x
@@ -387,6 +443,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 ]
         [ compile-fail test_vm_has_template_cp_fail.cpp :
           <toolset>gcc-4.3.0:<cxxflags>-std=c++0x
@@ -396,6 +456,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 ]
         [ compile-fail test_vm_has_template_cp_fail2.cpp :
           <toolset>gcc-4.3.0:<cxxflags>-std=c++0x
@@ -405,6 +469,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 ]
         [ compile-fail test_vm_has_template_cp_fail3.cpp :
           <toolset>gcc-4.3.0:<cxxflags>-std=c++0x
@@ -414,6 +482,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 ]
         [ compile-fail test_vm_has_template_cp_fail4.cpp :
           <toolset>gcc-4.3.0:<cxxflags>-std=c++0x
@@ -423,6 +495,10 @@
           <toolset>gcc-4.5.0:<cxxflags>-std=c++0x
           <toolset>gcc-4.5.2:<cxxflags>-std=c++0x
           <toolset>gcc-4.6.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.1:<cxxflags>-std=c++0x
+ <toolset>gcc-4.6.2:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.0:<cxxflags>-std=c++0x
+ <toolset>gcc-4.7.2:<cxxflags>-std=c++0x
           <define>BOOST_PP_VARIADICS=1 ]
     ;
     


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