Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66966 - sandbox/tti/boost/tti
From: eldiener_at_[hidden]
Date: 2010-12-02 00:01:02


Author: eldiener
Date: 2010-12-02 00:01:00 EST (Thu, 02 Dec 2010)
New Revision: 66966
URL: http://svn.boost.org/trac/boost/changeset/66966

Log:
Added more support for metafunctions that support nested types.
Text files modified:
   sandbox/tti/boost/tti/TTIntrospection.hpp | 22 +++++++++++++++++-----
   1 files changed, 17 insertions(+), 5 deletions(-)

Modified: sandbox/tti/boost/tti/TTIntrospection.hpp
==============================================================================
--- sandbox/tti/boost/tti/TTIntrospection.hpp (original)
+++ sandbox/tti/boost/tti/TTIntrospection.hpp 2010-12-02 00:01:00 EST (Thu, 02 Dec 2010)
@@ -45,7 +45,7 @@
   ) \
 /**/
 
-#define TTI_MF_TRAIT_MEMBER_TYPE(trait,name) \
+#define TTI_TRAIT_MEMBER_TYPE(trait,name) \
 namespace tti \
   { \
   namespace detail \
@@ -68,10 +68,10 @@
   } \
 /**/
 
-#define TTI_MF_MEMBER_TYPE(name) \
- TTI_MF_TRAIT_MEMBER_TYPE \
+#define TTI_MEMBER_TYPE(name) \
+ TTI_TRAIT_MEMBER_TYPE \
   ( \
- BOOST_PP_CAT(mf_member_type_,name), \
+ BOOST_PP_CAT(member_type_,name), \
   name \
   ) \
 /**/
@@ -124,7 +124,7 @@
 #define TTI_HAS_TYPE_CHECK_TYPEDEF(name) \
   TTI_TRAIT_HAS_TYPE_CHECK_TYPEDEF \
   ( \
- BOOST_PP_CAT(has_type_check_,name), \
+ BOOST_PP_CAT(has_type_check_typedef_,name), \
   name \
   ) \
 /**/
@@ -516,6 +516,18 @@
>
     {
     };
+
+ template
+ <
+ class T,
+ template<class,class> class HasTypeCheckTypedef,
+ class U
+ >
+ struct mf_has_type_check_typedef :
+ public mf_has_static_data<T,HasTypeCheckTypedef,U>
+ {
+ };
+
   }
   
 #endif // TT_INTROSPECTION_HPP


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