Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67055 - sandbox/tti/boost/tti
From: eldiener_at_[hidden]
Date: 2010-12-05 20:31:51


Author: eldiener
Date: 2010-12-05 20:31:49 EST (Sun, 05 Dec 2010)
New Revision: 67055
URL: http://svn.boost.org/trac/boost/changeset/67055

Log:
Split header file between normal macros and variadic data macros
Added:
   sandbox/tti/boost/tti/TTIntrospectionVM.hpp (contents, props changed)
Text files modified:
   sandbox/tti/boost/tti/TTIntrospection.hpp | 47 ---------------------------------------
   1 files changed, 1 insertions(+), 46 deletions(-)

Modified: sandbox/tti/boost/tti/TTIntrospection.hpp
==============================================================================
--- sandbox/tti/boost/tti/TTIntrospection.hpp (original)
+++ sandbox/tti/boost/tti/TTIntrospection.hpp 2010-12-05 20:31:49 EST (Sun, 05 Dec 2010)
@@ -14,10 +14,10 @@
 #include <boost/preprocessor/cat.hpp>
 #include <boost/preprocessor/repetition/enum_params.hpp>
 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
+#include <boost/preprocessor/arithmetic/add.hpp>
 #include <boost/type_traits/detail/yes_no_type.hpp>
 #include <boost/type_traits/is_same.hpp>
 #include <boost/type_traits/remove_const.hpp>
-#include <boost/variadic_macro_data/VariadicMacroData.hpp>
 #include "detail/TTIntrospectionDetail.hpp"
 
 #define TTI_TRAIT_HAS_TYPE(trait,name) \
@@ -167,19 +167,6 @@
   } \
 /**/
 
-#if !defined(BOOST_NO_VARIADIC_MACROS)
-
-#define TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
-namespace tti \
- { \
- TTI_DETAIL_HAS_MEMBER_WITH_FUNCTION_SFINAE \
- ( \
- ( BOOST_PP_ADD(VMD_DATA_SIZE(__VA_ARGS__),4), ( trait, name, 1, false, __VA_ARGS__ ) ) \
- ) \
- } \
-/**/
-
-#endif // !defined(BOOST_NO_VARIADIC_MACROS)
 #else // !!BOOST_WORKAROUND(BOOST_MSVC, <= 1400)
 
 #define TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,tpSeq) \
@@ -192,19 +179,6 @@
   } \
 /**/
 
-#if !defined(BOOST_NO_VARIADIC_MACROS)
-
-#define TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
-namespace tti \
- { \
- TTI_DETAIL_HAS_MEMBER_WITH_TEMPLATE_SFINAE \
- ( \
- ( BOOST_PP_ADD(VMD_DATA_SIZE(__VA_ARGS__),4), ( trait, name, 1, false, __VA_ARGS__ ) ) \
- ) \
- } \
-/**/
-
-#endif // !defined(BOOST_NO_VARIADIC_MACROS)
 #endif // !BOOST_WORKAROUND(BOOST_MSVC, <= 1400)
 #else // !!defined(BOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE)
 
@@ -212,13 +186,6 @@
 TTI_DETAIL_SAME(trait,name) \
 /**/
 
-#if !defined(BOOST_NO_VARIADIC_MACROS)
-
-#define TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
-TTI_DETAIL_SAME(trait,name) \
-/**/
-
-#endif // !defined(BOOST_NO_VARIADIC_MACROS)
 #endif // !defined(BOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE)
 
 #define TTI_HAS_TEMPLATE_CHECK_PARAMS(name,tpSeq) \
@@ -230,18 +197,6 @@
   ) \
 /**/
 
-#if !defined(BOOST_NO_VARIADIC_MACROS)
-
-#define TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(name,...) \
- TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
- ( \
- BOOST_PP_CAT(has_template_check_,name), \
- name, \
- __VA_ARGS__ \
- ) \
-/**/
-
-#endif // !defined(BOOST_NO_VARIADIC_MACROS)
 #if defined(BOOST_NO_NULLPTR)
 
 #define TTI_TRAIT_HAS_MEMBER(trait,name) \

Added: sandbox/tti/boost/tti/TTIntrospectionVM.hpp
==============================================================================
--- (empty file)
+++ sandbox/tti/boost/tti/TTIntrospectionVM.hpp 2010-12-05 20:31:49 EST (Sun, 05 Dec 2010)
@@ -0,0 +1,56 @@
+#if !defined(TT_INTROSPECTION_VM_HPP)
+#define TT_INTROSPECTION_VM_HPP
+
+#include <boost/config.hpp>
+#include <boost/mpl/has_xxx.hpp>
+#include <boost/preprocessor/cat.hpp>
+#include <boost/preprocessor/arithmetic/add.hpp>
+#include <boost/variadic_macro_data/VariadicMacroData.hpp>
+#include "detail/TTIntrospectionDetail.hpp"
+
+#if !defined(BOOST_NO_VARIADIC_MACROS)
+#if !defined(BOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE)
+#if !BOOST_WORKAROUND(BOOST_MSVC, <= 1400)
+
+#define TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
+namespace tti \
+ { \
+ TTI_DETAIL_HAS_MEMBER_WITH_FUNCTION_SFINAE \
+ ( \
+ ( BOOST_PP_ADD(VMD_DATA_SIZE(__VA_ARGS__),4), ( trait, name, 1, false, __VA_ARGS__ ) ) \
+ ) \
+ } \
+/**/
+
+#else // !!BOOST_WORKAROUND(BOOST_MSVC, <= 1400)
+
+#define TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
+namespace tti \
+ { \
+ TTI_DETAIL_HAS_MEMBER_WITH_TEMPLATE_SFINAE \
+ ( \
+ ( BOOST_PP_ADD(VMD_DATA_SIZE(__VA_ARGS__),4), ( trait, name, 1, false, __VA_ARGS__ ) ) \
+ ) \
+ } \
+/**/
+
+#endif // !BOOST_WORKAROUND(BOOST_MSVC, <= 1400)
+#else // !!defined(BOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE)
+
+#define TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
+TTI_DETAIL_SAME(trait,name) \
+/**/
+
+#endif // !defined(BOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE)
+
+#define TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(name,...) \
+ TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
+ ( \
+ BOOST_PP_CAT(has_template_check_,name), \
+ name, \
+ __VA_ARGS__ \
+ ) \
+/**/
+
+#endif // !defined(BOOST_NO_VARIADIC_MACROS)
+#endif // TT_INTROSPECTION_VM_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