Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73521 - in sandbox/variadic_macro_data/boost/variadic_macro_data: . detail
From: eldiener_at_[hidden]
Date: 2011-08-03 20:14:39


Author: eldiener
Date: 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
New Revision: 73521
URL: http://svn.boost.org/trac/boost/changeset/73521

Log:
Separate data and tuple functionality in own headers.
Added:
   sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_data.hpp (contents, props changed)
   sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_data_native.hpp (contents, props changed)
   sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_tuple.hpp (contents, props changed)
   sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_tuple_native.hpp (contents, props changed)
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_data.hpp (contents, props changed)
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_data_native.hpp (contents, props changed)
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_data_pplib.hpp (contents, props changed)
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_tuple.hpp (contents, props changed)
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_tuple_native.hpp (contents, props changed)
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_tuple_pplib.hpp (contents, props changed)
Removed:
   sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_common.hpp
   sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_pplib.hpp
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_common.hpp
Text files modified:
   sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_native.hpp | 165 ------------------------
   sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_native.hpp | 11 +
   sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_remove_parens_native.hpp | 2
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd.hpp | 2
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_is_empty_native.hpp | 2
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_is_tuple_begin_native.hpp | 2
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_native.hpp | 256 --------------------------------------
   sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_pplib.hpp | 265 ----------------------------------------
   8 files changed, 13 insertions(+), 692 deletions(-)

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_data.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_data.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,13 @@
+#if !defined(VMD_DETAIL_DATA_HPP)
+#define VMD_DETAIL_DATA_HPP
+
+#include "vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#if !BOOST_VMD_PPLIB
+#include "vmd_detail_data_native.hpp"
+#endif /* BOOST_VMD_PPLIB */
+
+#endif /* BOOST_VMD_VARIADICS */
+#endif /* VMD_DETAIL_DATA_HPP */

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_data_native.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_data_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,149 @@
+#if !defined(VMD_DETAIL_DATA_NATIVE_HPP)
+#define VMD_DETAIL_DATA_NATIVE_HPP
+
+#include "vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#include "vmd_detail_native.hpp"
+
+#if BOOST_VMD_MSVC
+#include <boost/preprocessor/facilities/empty.hpp>
+#if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
+#define VMD_DETAIL_VD_CAT(a, b) VMD_DETAIL_VD_CAT_I(a, b)
+#else
+#define VMD_DETAIL_VD_CAT(a, b) VMD_DETAIL_VD_CAT_OO((a, b))
+#define VMD_DETAIL_VD_CAT_OO(par) VMD_DETAIL_VD_CAT_I ## par
+#endif
+#if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
+#define VMD_DETAIL_VD_CAT_I(a, b) a ## b
+#else
+#define VMD_DETAIL_VD_CAT_I(a, b) VMD_DETAIL_VD_CAT_II(a ## b)
+#define VMD_DETAIL_VD_CAT_II(res) res
+#endif
+#endif // BOOST_VMD_MSVC
+
+#define VMD_DETAIL_DATA_ELEM_0(p0, ...) p0
+#define VMD_DETAIL_DATA_ELEM_1(p0, p1, ...) p1
+#define VMD_DETAIL_DATA_ELEM_2(p0, p1, p2, ...) p2
+#define VMD_DETAIL_DATA_ELEM_3(p0, p1, p2, p3, ...) p3
+#define VMD_DETAIL_DATA_ELEM_4(p0, p1, p2, p3, p4, ...) p4
+#define VMD_DETAIL_DATA_ELEM_5(p0, p1, p2, p3, p4, p5, ...) p5
+#define VMD_DETAIL_DATA_ELEM_6(p0, p1, p2, p3, p4, p5, p6, ...) p6
+#define VMD_DETAIL_DATA_ELEM_7(p0, p1, p2, p3, p4, p5, p6, p7, ...) p7
+#define VMD_DETAIL_DATA_ELEM_8(p0, p1, p2, p3, p4, p5, p6, p7, p8, ...) p8
+#define VMD_DETAIL_DATA_ELEM_9(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, ...) p9
+#define VMD_DETAIL_DATA_ELEM_10(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, ...) p10
+#define VMD_DETAIL_DATA_ELEM_11(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, ...) p11
+#define VMD_DETAIL_DATA_ELEM_12(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, ...) p12
+#define VMD_DETAIL_DATA_ELEM_13(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, ...) p13
+#define VMD_DETAIL_DATA_ELEM_14(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, ...) p14
+#define VMD_DETAIL_DATA_ELEM_15(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, ...) p15
+#define VMD_DETAIL_DATA_ELEM_16(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, ...) p16
+#define VMD_DETAIL_DATA_ELEM_17(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, ...) p17
+#define VMD_DETAIL_DATA_ELEM_18(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, ...) p18
+#define VMD_DETAIL_DATA_ELEM_19(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, ...) p19
+#define VMD_DETAIL_DATA_ELEM_20(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, ...) p20
+#define VMD_DETAIL_DATA_ELEM_21(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, ...) p21
+#define VMD_DETAIL_DATA_ELEM_22(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, ...) p22
+#define VMD_DETAIL_DATA_ELEM_23(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, ...) p23
+#define VMD_DETAIL_DATA_ELEM_24(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, ...) p24
+#define VMD_DETAIL_DATA_ELEM_25(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, ...) p25
+#define VMD_DETAIL_DATA_ELEM_26(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, ...) p26
+#define VMD_DETAIL_DATA_ELEM_27(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, ...) p27
+#define VMD_DETAIL_DATA_ELEM_28(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, ...) p28
+#define VMD_DETAIL_DATA_ELEM_29(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, ...) p29
+#define VMD_DETAIL_DATA_ELEM_30(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, ...) p30
+#define VMD_DETAIL_DATA_ELEM_31(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, ...) p31
+#define VMD_DETAIL_DATA_ELEM_32(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, ...) p32
+#define VMD_DETAIL_DATA_ELEM_33(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, ...) p33
+#define VMD_DETAIL_DATA_ELEM_34(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, ...) p34
+#define VMD_DETAIL_DATA_ELEM_35(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, ...) p35
+#define VMD_DETAIL_DATA_ELEM_36(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, ...) p36
+#define VMD_DETAIL_DATA_ELEM_37(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, ...) p37
+#define VMD_DETAIL_DATA_ELEM_38(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, ...) p38
+#define VMD_DETAIL_DATA_ELEM_39(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, ...) p39
+#define VMD_DETAIL_DATA_ELEM_40(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, ...) p40
+#define VMD_DETAIL_DATA_ELEM_41(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, ...) p41
+#define VMD_DETAIL_DATA_ELEM_42(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, ...) p42
+#define VMD_DETAIL_DATA_ELEM_43(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, ...) p43
+#define VMD_DETAIL_DATA_ELEM_44(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, ...) p44
+#define VMD_DETAIL_DATA_ELEM_45(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, ...) p45
+#define VMD_DETAIL_DATA_ELEM_46(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, ...) p46
+#define VMD_DETAIL_DATA_ELEM_47(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, ...) p47
+#define VMD_DETAIL_DATA_ELEM_48(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, ...) p48
+#define VMD_DETAIL_DATA_ELEM_49(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, ...) p49
+#define VMD_DETAIL_DATA_ELEM_50(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, ...) p50
+#define VMD_DETAIL_DATA_ELEM_51(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, ...) p51
+#define VMD_DETAIL_DATA_ELEM_52(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, ...) p52
+#define VMD_DETAIL_DATA_ELEM_53(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, ...) p53
+#define VMD_DETAIL_DATA_ELEM_54(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, ...) p54
+#define VMD_DETAIL_DATA_ELEM_55(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, ...) p55
+#define VMD_DETAIL_DATA_ELEM_56(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, ...) p56
+#define VMD_DETAIL_DATA_ELEM_57(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, ...) p57
+#define VMD_DETAIL_DATA_ELEM_58(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, ...) p58
+#define VMD_DETAIL_DATA_ELEM_59(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, ...) p59
+#define VMD_DETAIL_DATA_ELEM_60(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, ...) p60
+#define VMD_DETAIL_DATA_ELEM_61(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, ...) p61
+#define VMD_DETAIL_DATA_ELEM_62(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, ...) p62
+#define VMD_DETAIL_DATA_ELEM_63(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, ...) p63
+
+#define VMD_DETAIL_ARG_N( \
+ A1,A2,A3,A4,A5,A6,A7,A8,A9,A10, \
+ A11,A12,A13,A14,A15,A16,A17,A18,A19,A20, \
+ A21,A22,A23,A24,A25,A26,A27,A28,A29,A30, \
+ A31,A32,A33,A34,A35,A36,A37,A38,A39,A40, \
+ A41,A42,A43,A44,A45,A46,A47,A48,A49,A50, \
+ A51,A52,A53,A54,A55,A56,A57,A58,A59,A60, \
+ A61,A62,A63,A64,N,...) N \
+/**/
+#define VMD_DETAIL_RSEQ_N() \
+ 64,63,62,61,60, \
+ 59,58,57,56,55,54,53,52,51,50, \
+ 49,48,47,46,45,44,43,42,41,40, \
+ 39,38,37,36,35,34,33,32,31,30, \
+ 29,28,27,26,25,24,23,22,21,20, \
+ 19,18,17,16,15,14,13,12,11,10, \
+ 9,8,7,6,5,4,3,2,1,0 \
+/**/
+#define VMD_DETAIL_APPLY_I(macro, args) \
+ macro args \
+/**/
+#define VMD_DETAIL_APPLY(macro, args) \
+ VMD_DETAIL_APPLY_I(macro, args) \
+/**/
+#define VMD_DETAIL_DATA_TO_PP_TUPLE(...) \
+ ( __VA_ARGS__ ) \
+/**/
+#if BOOST_VMD_MSVC
+#define VMD_DETAIL_DATA_SIZE(...) \
+ VMD_DETAIL_VD_CAT(VMD_DETAIL_APPLY(VMD_DETAIL_ARG_N, (__VA_ARGS__, VMD_DETAIL_RSEQ_N())),BOOST_PP_EMPTY()) \
+/**/
+#else
+#define VMD_DETAIL_DATA_SIZE(...) \
+ VMD_DETAIL_APPLY(VMD_DETAIL_ARG_N, (__VA_ARGS__, VMD_DETAIL_RSEQ_N())) \
+/**/
+#endif
+#define VMD_DETAIL_CAT(a, ...) VMD_DETAIL_PRIMITIVE_CAT(a, __VA_ARGS__)
+#define VMD_DETAIL_PRIMITIVE_CAT(a, ...) a ## __VA_ARGS__
+#if BOOST_VMD_MSVC
+#define VMD_DETAIL_DATA_ELEM(n,...) \
+ VMD_DETAIL_VD_CAT(VMD_DETAIL_CAT(VMD_DETAIL_DATA_ELEM_, n)(__VA_ARGS__,),BOOST_PP_EMPTY()) \
+/**/
+#else
+#define VMD_DETAIL_DATA_ELEM(n,...) \
+ VMD_DETAIL_CAT(VMD_DETAIL_DATA_ELEM_, n)(__VA_ARGS__,) \
+/**/
+#endif
+#define VMD_DETAIL_DATA_TO_PP_ARRAY(...) \
+ ( VMD_DETAIL_DATA_SIZE(__VA_ARGS__) , VMD_DETAIL_DATA_TO_PP_TUPLE(__VA_ARGS__)) \
+/**/
+#define VMD_DETAIL_DATA_TO_PP_LIST(...) \
+ VMD_DETAIL_PP_TUPLE_TO_LIST(VMD_DETAIL_DATA_SIZE(__VA_ARGS__),VMD_DETAIL_DATA_TO_PP_TUPLE(__VA_ARGS__)) \
+/**/
+#define VMD_DETAIL_DATA_TO_PP_SEQ(...) \
+ VMD_DETAIL_PP_TUPLE_TO_SEQ(VMD_DETAIL_DATA_SIZE(__VA_ARGS__),VMD_DETAIL_DATA_TO_PP_TUPLE(__VA_ARGS__)) \
+/**/
+
+#endif // BOOST_VMD_VARIADICS
+#endif // VMD_DETAIL_DATA_NATIVE_HPP

Deleted: sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_common.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_common.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
+++ (empty file)
@@ -1,9 +0,0 @@
-#if !defined(VMD_DETAIL_MAIN_COMMON_HPP)
-#define VMD_DETAIL_MAIN_COMMON_HPP
-
-#include "vmd_detail_setup.hpp"
-
-#if BOOST_VMD_VARIADICS
-
-#endif /* BOOST_VMD_VARIADICS */
-#endif /* VMD_DETAIL_MAIN_COMMON_HPP */

Modified: sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_native.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_native.hpp (original)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -5,170 +5,5 @@
 
 #if BOOST_VMD_VARIADICS
 
-#include <boost/preprocessor/facilities/identity.hpp>
-#include <boost/preprocessor/tuple/elem.hpp>
-#include <boost/preprocessor/tuple/reverse.hpp>
-#include <boost/preprocessor/tuple/to_list.hpp>
-#include <boost/preprocessor/tuple/to_seq.hpp>
-#include <boost/preprocessor/tuple/rem.hpp>
-#include "vmd_detail_native.hpp"
-
-#if BOOST_VMD_MSVC
-#include <boost/preprocessor/arithmetic/dec.hpp>
-#include <boost/preprocessor/facilities/empty.hpp>
-#if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
-#define VMD_DETAIL_VD_CAT(a, b) VMD_DETAIL_VD_CAT_I(a, b)
-#else
-#define VMD_DETAIL_VD_CAT(a, b) VMD_DETAIL_VD_CAT_OO((a, b))
-#define VMD_DETAIL_VD_CAT_OO(par) VMD_DETAIL_VD_CAT_I ## par
-#endif
-#if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
-#define VMD_DETAIL_VD_CAT_I(a, b) a ## b
-#else
-#define VMD_DETAIL_VD_CAT_I(a, b) VMD_DETAIL_VD_CAT_II(a ## b)
-#define VMD_DETAIL_VD_CAT_II(res) res
-#endif
-#endif // BOOST_VMD_MSVC
-
-#define VMD_DETAIL_DATA_ELEM_0(p0, ...) p0
-#define VMD_DETAIL_DATA_ELEM_1(p0, p1, ...) p1
-#define VMD_DETAIL_DATA_ELEM_2(p0, p1, p2, ...) p2
-#define VMD_DETAIL_DATA_ELEM_3(p0, p1, p2, p3, ...) p3
-#define VMD_DETAIL_DATA_ELEM_4(p0, p1, p2, p3, p4, ...) p4
-#define VMD_DETAIL_DATA_ELEM_5(p0, p1, p2, p3, p4, p5, ...) p5
-#define VMD_DETAIL_DATA_ELEM_6(p0, p1, p2, p3, p4, p5, p6, ...) p6
-#define VMD_DETAIL_DATA_ELEM_7(p0, p1, p2, p3, p4, p5, p6, p7, ...) p7
-#define VMD_DETAIL_DATA_ELEM_8(p0, p1, p2, p3, p4, p5, p6, p7, p8, ...) p8
-#define VMD_DETAIL_DATA_ELEM_9(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, ...) p9
-#define VMD_DETAIL_DATA_ELEM_10(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, ...) p10
-#define VMD_DETAIL_DATA_ELEM_11(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, ...) p11
-#define VMD_DETAIL_DATA_ELEM_12(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, ...) p12
-#define VMD_DETAIL_DATA_ELEM_13(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, ...) p13
-#define VMD_DETAIL_DATA_ELEM_14(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, ...) p14
-#define VMD_DETAIL_DATA_ELEM_15(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, ...) p15
-#define VMD_DETAIL_DATA_ELEM_16(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, ...) p16
-#define VMD_DETAIL_DATA_ELEM_17(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, ...) p17
-#define VMD_DETAIL_DATA_ELEM_18(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, ...) p18
-#define VMD_DETAIL_DATA_ELEM_19(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, ...) p19
-#define VMD_DETAIL_DATA_ELEM_20(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, ...) p20
-#define VMD_DETAIL_DATA_ELEM_21(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, ...) p21
-#define VMD_DETAIL_DATA_ELEM_22(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, ...) p22
-#define VMD_DETAIL_DATA_ELEM_23(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, ...) p23
-#define VMD_DETAIL_DATA_ELEM_24(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, ...) p24
-#define VMD_DETAIL_DATA_ELEM_25(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, ...) p25
-#define VMD_DETAIL_DATA_ELEM_26(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, ...) p26
-#define VMD_DETAIL_DATA_ELEM_27(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, ...) p27
-#define VMD_DETAIL_DATA_ELEM_28(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, ...) p28
-#define VMD_DETAIL_DATA_ELEM_29(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, ...) p29
-#define VMD_DETAIL_DATA_ELEM_30(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, ...) p30
-#define VMD_DETAIL_DATA_ELEM_31(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, ...) p31
-#define VMD_DETAIL_DATA_ELEM_32(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, ...) p32
-#define VMD_DETAIL_DATA_ELEM_33(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, ...) p33
-#define VMD_DETAIL_DATA_ELEM_34(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, ...) p34
-#define VMD_DETAIL_DATA_ELEM_35(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, ...) p35
-#define VMD_DETAIL_DATA_ELEM_36(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, ...) p36
-#define VMD_DETAIL_DATA_ELEM_37(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, ...) p37
-#define VMD_DETAIL_DATA_ELEM_38(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, ...) p38
-#define VMD_DETAIL_DATA_ELEM_39(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, ...) p39
-#define VMD_DETAIL_DATA_ELEM_40(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, ...) p40
-#define VMD_DETAIL_DATA_ELEM_41(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, ...) p41
-#define VMD_DETAIL_DATA_ELEM_42(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, ...) p42
-#define VMD_DETAIL_DATA_ELEM_43(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, ...) p43
-#define VMD_DETAIL_DATA_ELEM_44(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, ...) p44
-#define VMD_DETAIL_DATA_ELEM_45(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, ...) p45
-#define VMD_DETAIL_DATA_ELEM_46(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, ...) p46
-#define VMD_DETAIL_DATA_ELEM_47(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, ...) p47
-#define VMD_DETAIL_DATA_ELEM_48(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, ...) p48
-#define VMD_DETAIL_DATA_ELEM_49(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, ...) p49
-#define VMD_DETAIL_DATA_ELEM_50(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, ...) p50
-#define VMD_DETAIL_DATA_ELEM_51(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, ...) p51
-#define VMD_DETAIL_DATA_ELEM_52(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, ...) p52
-#define VMD_DETAIL_DATA_ELEM_53(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, ...) p53
-#define VMD_DETAIL_DATA_ELEM_54(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, ...) p54
-#define VMD_DETAIL_DATA_ELEM_55(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, ...) p55
-#define VMD_DETAIL_DATA_ELEM_56(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, ...) p56
-#define VMD_DETAIL_DATA_ELEM_57(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, ...) p57
-#define VMD_DETAIL_DATA_ELEM_58(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, ...) p58
-#define VMD_DETAIL_DATA_ELEM_59(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, ...) p59
-#define VMD_DETAIL_DATA_ELEM_60(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, ...) p60
-#define VMD_DETAIL_DATA_ELEM_61(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, ...) p61
-#define VMD_DETAIL_DATA_ELEM_62(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, ...) p62
-#define VMD_DETAIL_DATA_ELEM_63(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, ...) p63
-
-#define VMD_DETAIL_ARG_N( \
- A1,A2,A3,A4,A5,A6,A7,A8,A9,A10, \
- A11,A12,A13,A14,A15,A16,A17,A18,A19,A20, \
- A21,A22,A23,A24,A25,A26,A27,A28,A29,A30, \
- A31,A32,A33,A34,A35,A36,A37,A38,A39,A40, \
- A41,A42,A43,A44,A45,A46,A47,A48,A49,A50, \
- A51,A52,A53,A54,A55,A56,A57,A58,A59,A60, \
- A61,A62,A63,A64,N,...) N \
-/**/
-#define VMD_DETAIL_RSEQ_N() \
- 64,63,62,61,60, \
- 59,58,57,56,55,54,53,52,51,50, \
- 49,48,47,46,45,44,43,42,41,40, \
- 39,38,37,36,35,34,33,32,31,30, \
- 29,28,27,26,25,24,23,22,21,20, \
- 19,18,17,16,15,14,13,12,11,10, \
- 9,8,7,6,5,4,3,2,1,0 \
-/**/
-#define VMD_DETAIL_APPLY_I(macro, args) \
- macro args \
-/**/
-#define VMD_DETAIL_APPLY(macro, args) \
- VMD_DETAIL_APPLY_I(macro, args) \
-/**/
-#define VMD_DETAIL_DATA_TO_PP_TUPLE(...) \
- ( __VA_ARGS__ ) \
-/**/
-#if BOOST_VMD_MSVC
-#define VMD_DETAIL_DATA_SIZE(...) \
- VMD_DETAIL_VD_CAT(VMD_DETAIL_APPLY(VMD_DETAIL_ARG_N, (__VA_ARGS__, VMD_DETAIL_RSEQ_N())),BOOST_PP_EMPTY()) \
-/**/
-#else
-#define VMD_DETAIL_DATA_SIZE(...) \
- VMD_DETAIL_APPLY(VMD_DETAIL_ARG_N, (__VA_ARGS__, VMD_DETAIL_RSEQ_N())) \
-/**/
-#endif
-#define VMD_DETAIL_PP_TUPLE_ELEM(size,i,tuple) \
- BOOST_PP_TUPLE_ELEM(size,i,tuple) \
-/**/
-#define VMD_DETAIL_CAT(a, ...) VMD_DETAIL_PRIMITIVE_CAT(a, __VA_ARGS__)
-#define VMD_DETAIL_PRIMITIVE_CAT(a, ...) a ## __VA_ARGS__
-#if BOOST_VMD_MSVC
-#define VMD_DETAIL_DATA_ELEM(n,...) \
- VMD_DETAIL_VD_CAT(VMD_DETAIL_CAT(VMD_DETAIL_DATA_ELEM_, n)(__VA_ARGS__,),BOOST_PP_EMPTY()) \
-/**/
-#else
-#define VMD_DETAIL_DATA_ELEM(n,...) \
- VMD_DETAIL_CAT(VMD_DETAIL_DATA_ELEM_, n)(__VA_ARGS__,) \
-/**/
-#endif
-#define VMD_DETAIL_DATA_TO_PP_ARRAY(...) \
- ( VMD_DETAIL_DATA_SIZE(__VA_ARGS__) , VMD_DETAIL_DATA_TO_PP_TUPLE(__VA_ARGS__)) \
-/**/
-#define VMD_DETAIL_PP_TUPLE_TO_LIST(size,tuple) \
- BOOST_PP_TUPLE_TO_LIST(size,tuple) \
-/**/
-#define VMD_DETAIL_DATA_TO_PP_LIST(...) \
- VMD_DETAIL_PP_TUPLE_TO_LIST(VMD_DETAIL_DATA_SIZE(__VA_ARGS__),VMD_DETAIL_DATA_TO_PP_TUPLE(__VA_ARGS__)) \
-/**/
-#define VMD_DETAIL_PP_TUPLE_TO_SEQ(size,tuple) \
- BOOST_PP_TUPLE_TO_SEQ(size,tuple) \
-/**/
-#define VMD_DETAIL_DATA_TO_PP_SEQ(...) \
- VMD_DETAIL_PP_TUPLE_TO_SEQ(VMD_DETAIL_DATA_SIZE(__VA_ARGS__),VMD_DETAIL_DATA_TO_PP_TUPLE(__VA_ARGS__)) \
-/**/
-#define VMD_DETAIL_PP_TUPLE_SIZE(tuple) \
- VMD_DETAIL_DATA_SIZE(VMD_DETAIL_PP_TUPLE_TO_DATA(tuple)) \
-/**/
-#define VMD_DETAIL_PP_TUPLE_REM_CTOR(size,tuple) \
- BOOST_PP_TUPLE_REM_CTOR(size,tuple) \
-/**/
-#define VMD_DETAIL_PP_TUPLE_REVERSE(size,tuple) \
- BOOST_PP_TUPLE_REVERSE(size,tuple) \
-/**/
-
 #endif // BOOST_VMD_VARIADICS
 #endif // VMD_DETAIL_MAIN_NATIVE_HPP

Deleted: sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_pplib.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_main_pplib.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
+++ (empty file)
@@ -1,9 +0,0 @@
-#if !defined(VMD_DETAIL_MAIN_PPLIB_HPP)
-#define VMD_DETAIL_MAIN_PPLIB_HPP
-
-#include "vmd_detail_setup.hpp"
-
-#if BOOST_VMD_VARIADICS
-
-#endif // BOOST_VMD_VARIADICS
-#endif // VMD_DETAIL_MAIN_PPLIB_HPP

Modified: sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_native.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_native.hpp (original)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -5,11 +5,14 @@
 
 #if BOOST_VMD_VARIADICS
 
-#define VMD_DETAIL_REMOVE_TUPLE_PARENS(...) \
- __VA_ARGS__ \
+#include <boost/preprocessor/tuple/to_list.hpp>
+#include <boost/preprocessor/tuple/to_seq.hpp>
+
+#define VMD_DETAIL_PP_TUPLE_TO_LIST(size,tuple) \
+ BOOST_PP_TUPLE_TO_LIST(size,tuple) \
 /**/
-#define VMD_DETAIL_PP_TUPLE_TO_DATA(tuple) \
- VMD_DETAIL_REMOVE_TUPLE_PARENS tuple \
+#define VMD_DETAIL_PP_TUPLE_TO_SEQ(size,tuple) \
+ BOOST_PP_TUPLE_TO_SEQ(size,tuple) \
 /**/
 
 #endif // BOOST_VMD_VARIADICS

Modified: sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_remove_parens_native.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_remove_parens_native.hpp (original)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_remove_parens_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -6,7 +6,7 @@
 #if BOOST_VMD_VARIADICS
 
 #include <boost/preprocessor/facilities/identity.hpp>
-#include "vmd_detail_native.hpp"
+#include "vmd_detail_tuple.hpp"
 
 #define VMD_DETAIL_REMOVE_PARENS(x) \
   BOOST_PP_IDENTITY(VMD_DETAIL_PP_TUPLE_TO_DATA(x)) \

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_tuple.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_tuple.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,13 @@
+#if !defined(VMD_DETAIL_TUPLE_HPP)
+#define VMD_DETAIL_TUPLE_HPP
+
+#include "vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#if !BOOST_VMD_PPLIB
+#include "vmd_detail_tuple_native.hpp"
+#endif /* BOOST_VMD_PPLIB */
+
+#endif /* BOOST_VMD_VARIADICS */
+#endif /* VMD_DETAIL_TUPLE_HPP */

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_tuple_native.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/detail/vmd_detail_tuple_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,34 @@
+#if !defined(VMD_DETAIL_TUPLE_NATIVE_HPP)
+#define VMD_DETAIL_TUPLE_NATIVE_HPP
+
+#include "vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#include <boost/preprocessor/tuple/elem.hpp>
+#include <boost/preprocessor/tuple/reverse.hpp>
+#include <boost/preprocessor/tuple/rem.hpp>
+#include "vmd_detail_data_native.hpp"
+#include "vmd_detail_native.hpp"
+
+#define VMD_DETAIL_REMOVE_TUPLE_PARENS(...) \
+ __VA_ARGS__ \
+/**/
+#define VMD_DETAIL_PP_TUPLE_TO_DATA(tuple) \
+ VMD_DETAIL_REMOVE_TUPLE_PARENS tuple \
+/**/
+#define VMD_DETAIL_PP_TUPLE_ELEM(size,i,tuple) \
+ BOOST_PP_TUPLE_ELEM(size,i,tuple) \
+/**/
+#define VMD_DETAIL_PP_TUPLE_SIZE(tuple) \
+ VMD_DETAIL_DATA_SIZE(VMD_DETAIL_PP_TUPLE_TO_DATA(tuple)) \
+/**/
+#define VMD_DETAIL_PP_TUPLE_REM_CTOR(size,tuple) \
+ BOOST_PP_TUPLE_REM_CTOR(size,tuple) \
+/**/
+#define VMD_DETAIL_PP_TUPLE_REVERSE(size,tuple) \
+ BOOST_PP_TUPLE_REVERSE(size,tuple) \
+/**/
+
+#endif // BOOST_VMD_VARIADICS
+#endif // VMD_DETAIL_TUPLE_NATIVE_HPP

Modified: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/vmd.hpp (original)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -6,6 +6,8 @@
 #if BOOST_VMD_VARIADICS
 
 #include "vmd_main.hpp"
+#include "vmd_data.hpp"
+#include "vmd_tuple.hpp"
 #include "vmd_is_empty.hpp"
 #include "vmd_is_tuple_begin.hpp"
 #include "vmd_remove_parens.hpp"

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_data.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_data.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,15 @@
+#if !defined(VMD_DATA_HPP)
+#define VMD_DATA_HPP
+
+#include "detail/vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#if BOOST_VMD_PPLIB
+#include "vmd_data_pplib.hpp"
+#else
+#include "vmd_data_native.hpp"
+#endif /* BOOST_VMD_PPLIB */
+
+#endif /* BOOST_VMD_VARIADICS */
+#endif /* VMD_DATA_HPP */

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_data_native.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_data_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,119 @@
+#if !defined(VMD_DATA_NATIVE_HPP)
+#define VMD_DATA_NATIVE_HPP
+
+#include "detail/vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#include "detail/vmd_detail_data.hpp"
+
+/*
+
+ The succeeding comments in this file are in doxygen format.
+
+*/
+
+/** \file
+*/
+
+/// Expands to the number of comma-separated variadic macro data arguments.
+/**
+
+ ... = variadic macro data.
+
+ returns = the number of comma-separated variadic macro data
+ arguments being passed to it.
+
+ The value returned can be between 1 and 64.
+
+*/
+#define BOOST_VMD_DATA_SIZE(...) \
+ VMD_DETAIL_DATA_SIZE(__VA_ARGS__) \
+/**/
+
+/// Expands to a particular variadic macro data argument.
+/**
+
+ n = number of the variadic macro data argument.
+ The number starts from 0 to the number of
+ variadic macro data arguments - 1. The maximum
+ number for n is 63.
+
+ ... = variadic macro data.
+
+ returns = the particular macro data argument as specified
+ by n. The argument returned can be any valid
+ preprocessing token.
+
+*/
+#define BOOST_VMD_DATA_ELEM(n,...) \
+ VMD_DETAIL_DATA_ELEM(n,__VA_ARGS__) \
+/**/
+
+/// Expand to a Boost PP tuple data type.
+/**
+
+ ... = variadic macro data.
+
+ returns = a Boost PP library tuple data type.
+
+ You can use the result of this macro whenever
+ you need to pass a Boost PP library tuple as
+ data to a Boost PP library macro.
+
+*/
+#define BOOST_VMD_DATA_TO_PP_TUPLE(...) \
+ VMD_DETAIL_DATA_TO_PP_TUPLE(__VA_ARGS__) \
+/**/
+
+/// Expand to a Boost PP array data type.
+/**
+
+ ... = variadic macro data.
+
+ returns = a Boost PP library array data type.
+
+ You can use the result of this macro whenever
+ you need to pass a Boost PP library array as
+ data to a Boost PP library macro.
+
+*/
+#define BOOST_VMD_DATA_TO_PP_ARRAY(...) \
+ VMD_DETAIL_DATA_TO_PP_ARRAY(__VA_ARGS__) \
+/**/
+
+/// Expand to a Boost PP list data type.
+/**
+
+ ... = variadic macro data.
+
+ returns = a Boost PP library list data type.
+
+ You can use the result of this macro whenever
+ you need to pass a Boost PP library list as
+ data to a Boost PP library macro.
+
+*/
+#define BOOST_VMD_DATA_TO_PP_LIST(...) \
+ VMD_DETAIL_DATA_TO_PP_LIST(__VA_ARGS__) \
+/**/
+
+/// Expand to a Boost PP sequence data type.
+/**
+
+ ... = variadic macro data.
+
+ returns = a Boost PP library sequence data type.
+
+ You can use the result of this macro whenever
+ you need to pass a Boost PP library sequence as
+ data to a Boost PP library macro.
+
+*/
+#define BOOST_VMD_DATA_TO_PP_SEQ(...) \
+ VMD_DETAIL_DATA_TO_PP_SEQ(__VA_ARGS__) \
+/**/
+
+
+#endif /* BOOST_VMD_VARIADICS */
+#endif /* VMD_DATA_NATIVE_HPP */

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_data_pplib.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_data_pplib.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,123 @@
+#if !defined(VMD_DATA_PPLIB_HPP)
+#define VMD_DATA_PPLIB_HPP
+
+#include "detail/vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#include <boost/preprocessor/variadic/elem.hpp>
+#include <boost/preprocessor/variadic/size.hpp>
+#include <boost/preprocessor/variadic/to_array.hpp>
+#include <boost/preprocessor/variadic/to_list.hpp>
+#include <boost/preprocessor/variadic/to_seq.hpp>
+#include <boost/preprocessor/variadic/to_tuple.hpp>
+
+/*
+
+ The succeeding comments in this file are in doxygen format.
+
+*/
+
+/** \file
+*/
+
+/// Expands to the number of comma-separated variadic macro data arguments.
+/**
+
+ ... = variadic macro data.
+
+ returns = the number of comma-separated variadic macro data
+ arguments being passed to it.
+
+ The value returned can be between 1 and 64.
+
+*/
+#define BOOST_VMD_DATA_SIZE(...) \
+ BOOST_PP_VARIADIC_SIZE(__VA_ARGS__) \
+/**/
+
+/// Expands to a particular variadic macro data argument.
+/**
+
+ n = number of the variadic macro data argument.
+ The number starts from 0 to the number of
+ variadic macro data arguments - 1. The maximum
+ number for n is 63.
+
+ ... = variadic macro data.
+
+ returns = the particular macro data argument as specified
+ by n. The argument returned can be any valid
+ preprocessing token.
+
+*/
+#define BOOST_VMD_DATA_ELEM(n,...) \
+ BOOST_PP_VARIADIC_ELEM(n,__VA_ARGS__) \
+/**/
+
+/// Expand to a Boost PP tuple data type.
+/**
+
+ ... = variadic macro data.
+
+ returns = a Boost PP library tuple data type.
+
+ You can use the result of this macro whenever
+ you need to pass a Boost PP library tuple as
+ data to a Boost PP library macro.
+
+*/
+#define BOOST_VMD_DATA_TO_PP_TUPLE(...) \
+ BOOST_PP_VARIADIC_TO_TUPLE(__VA_ARGS__) \
+/**/
+
+/// Expand to a Boost PP array data type.
+/**
+
+ ... = variadic macro data.
+
+ returns = a Boost PP library array data type.
+
+ You can use the result of this macro whenever
+ you need to pass a Boost PP library array as
+ data to a Boost PP library macro.
+
+*/
+#define BOOST_VMD_DATA_TO_PP_ARRAY(...) \
+ BOOST_PP_VARIADIC_TO_ARRAY(__VA_ARGS__) \
+/**/
+
+/// Expand to a Boost PP list data type.
+/**
+
+ ... = variadic macro data.
+
+ returns = a Boost PP library list data type.
+
+ You can use the result of this macro whenever
+ you need to pass a Boost PP library list as
+ data to a Boost PP library macro.
+
+*/
+#define BOOST_VMD_DATA_TO_PP_LIST(...) \
+ BOOST_PP_VARIADIC_TO_LIST(__VA_ARGS__) \
+/**/
+
+/// Expand to a Boost PP sequence data type.
+/**
+
+ ... = variadic macro data.
+
+ returns = a Boost PP library sequence data type.
+
+ You can use the result of this macro whenever
+ you need to pass a Boost PP library sequence as
+ data to a Boost PP library macro.
+
+*/
+#define BOOST_VMD_DATA_TO_PP_SEQ(...) \
+ BOOST_PP_VARIADIC_TO_SEQ(__VA_ARGS__) \
+/**/
+
+#endif /* BOOST_VMD_VARIADICS */
+#endif /* VMD_DATA_PPLIB_HPP */

Modified: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_is_empty_native.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_is_empty_native.hpp (original)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_is_empty_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -7,7 +7,7 @@
 
 #include <boost/preprocessor/arithmetic/dec.hpp>
 
-#include "vmd_main.hpp"
+#include "vmd_data.hpp"
 #include "vmd_is_tuple_begin.hpp"
 #include "detail/vmd_detail.hpp"
 #include "detail/vmd_detail_is_empty.hpp"

Modified: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_is_tuple_begin_native.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_is_tuple_begin_native.hpp (original)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_is_tuple_begin_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -7,7 +7,7 @@
 
 #include <boost/preprocessor/arithmetic/dec.hpp>
 
-#include "vmd_main.hpp"
+#include "vmd_data.hpp"
 #include "detail/vmd_detail.hpp"
 
 /*

Deleted: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_common.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_common.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
+++ (empty file)
@@ -1,19 +0,0 @@
-#if !defined(VMD_MAIN_COMMON_HPP)
-#define VMD_MAIN_COMMON_HPP
-
-#include "detail/vmd_detail_setup.hpp"
-
-#if BOOST_VMD_VARIADICS
-
-/*
-
- The succeeding comments in this file are in doxygen format.
-
-*/
-
-/** \file
-*/
-
-#endif /* BOOST_VMD_VARIADICS */
-
-#endif /* VMD_MAIN_COMMON_HPP */

Modified: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_native.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_native.hpp (original)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -8,9 +8,7 @@
 #include <boost/preprocessor/array/data.hpp>
 #include <boost/preprocessor/list/to_tuple.hpp>
 #include <boost/preprocessor/seq/to_tuple.hpp>
-
-#include "detail/vmd_detail_main.hpp"
-#include "detail/vmd_detail.hpp"
+#include "vmd_tuple.hpp"
 
 /*
 
@@ -21,258 +19,6 @@
 /** \file
 */
 
-/// Expands to the number of comma-separated variadic macro data arguments.
-/**
-
- ... = variadic macro data.
-
- returns = the number of comma-separated variadic macro data
- arguments being passed to it.
-
- The value returned can be between 1 and 64.
-
-*/
-#define BOOST_VMD_DATA_SIZE(...) \
- VMD_DETAIL_DATA_SIZE(__VA_ARGS__) \
-/**/
-
-/// Expands to a particular variadic macro data argument.
-/**
-
- n = number of the variadic macro data argument.
- The number starts from 0 to the number of
- variadic macro data arguments - 1. The maximum
- number for n is 63.
-
- ... = variadic macro data.
-
- returns = the particular macro data argument as specified
- by n. The argument returned can be any valid
- preprocessing token.
-
-*/
-#define BOOST_VMD_DATA_ELEM(n,...) \
- VMD_DETAIL_DATA_ELEM(n,__VA_ARGS__) \
-/**/
-
-/// Expand to a Boost PP tuple data type.
-/**
-
- ... = variadic macro data.
-
- returns = a Boost PP library tuple data type.
-
- You can use the result of this macro whenever
- you need to pass a Boost PP library tuple as
- data to a Boost PP library macro.
-
-*/
-#define BOOST_VMD_DATA_TO_PP_TUPLE(...) \
- VMD_DETAIL_DATA_TO_PP_TUPLE(__VA_ARGS__) \
-/**/
-
-/// Expand to a Boost PP array data type.
-/**
-
- ... = variadic macro data.
-
- returns = a Boost PP library array data type.
-
- You can use the result of this macro whenever
- you need to pass a Boost PP library array as
- data to a Boost PP library macro.
-
-*/
-#define BOOST_VMD_DATA_TO_PP_ARRAY(...) \
- VMD_DETAIL_DATA_TO_PP_ARRAY(__VA_ARGS__) \
-/**/
-
-/// Expand to a Boost PP list data type.
-/**
-
- ... = variadic macro data.
-
- returns = a Boost PP library list data type.
-
- You can use the result of this macro whenever
- you need to pass a Boost PP library list as
- data to a Boost PP library macro.
-
-*/
-#define BOOST_VMD_DATA_TO_PP_LIST(...) \
- VMD_DETAIL_DATA_TO_PP_LIST(__VA_ARGS__) \
-/**/
-
-/// Expand to a Boost PP sequence data type.
-/**
-
- ... = variadic macro data.
-
- returns = a Boost PP library sequence data type.
-
- You can use the result of this macro whenever
- you need to pass a Boost PP library sequence as
- data to a Boost PP library macro.
-
-*/
-#define BOOST_VMD_DATA_TO_PP_SEQ(...) \
- VMD_DETAIL_DATA_TO_PP_SEQ(__VA_ARGS__) \
-/**/
-
-/// Expands to the number of elements in a tuple.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = the number of elements in the tuple,
- commonly referred to as the tuple size.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
-*/
-#define BOOST_VMD_PP_TUPLE_SIZE(tuple) \
- VMD_DETAIL_PP_TUPLE_SIZE(tuple) \
-/**/
-
-/// Expands to a particular tuple element.
-/**
-
- n = number of the tuple element.
- The number starts from 0 to the size of
- the tuple - 1.
-
- tuple = a Boost PP library tuple data type.
-
- returns = the particular tuple element as specified
- by n.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_ELEM
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_ELEM(n,tuple) \
- VMD_DETAIL_PP_TUPLE_ELEM(BOOST_VMD_PP_TUPLE_SIZE(tuple),n,tuple) \
-/**/
-
-/// Expands to a series of tokens which are equivalent to removing the parentheses from a tuple.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = a series of comma-separated tokens equivalent to removing the parentheses from a tuple.
-
- This result is actually equivalent to the form of variadic macro data
- and can be used as an alternative to BOOST_VMD_PP_TUPLE_TO_DATA to convert
- the tuple to variadic macro data.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_REM_CTOR
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_REM_CTOR(tuple) \
- VMD_DETAIL_PP_TUPLE_REM_CTOR(BOOST_VMD_PP_TUPLE_SIZE(tuple),tuple) \
-/**/
-
-/// Expands to a tuple whose elements are in reversed order.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = a tuple whose elements are in reversed order
- from the original tuple.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_REVERSE
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_REVERSE(tuple) \
- VMD_DETAIL_PP_TUPLE_REVERSE(BOOST_VMD_PP_TUPLE_SIZE(tuple),tuple) \
-/**/
-
-/// Expands to a list whose elements are the same as a tuple.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = a list whose elements are the same as the tuple
- that is inputted.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_TO_LIST
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_TO_LIST(tuple) \
- VMD_DETAIL_PP_TUPLE_TO_LIST(BOOST_VMD_PP_TUPLE_SIZE(tuple),tuple) \
-/**/
-
-/// Expands to a sequence whose elements are the same as a tuple.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = a sequence whose elements are the same as the tuple
- that is inputted.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_TO_SEQ
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_TO_SEQ(tuple) \
- VMD_DETAIL_PP_TUPLE_TO_SEQ(BOOST_VMD_PP_TUPLE_SIZE(tuple),tuple) \
-/**/
-
-/// Expands to variadic macro data whose arguments are the same as a tuple's elements.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = variadic macro data whose arguments are the same as the
- elements of a tuple that is inputted.
-
- The variadic macro data that is returned is in the form of
- of comma separated arguments. The variadic macro data can be
- passed to any macro which takes variadic macro data in the form
- of a final variadic macro data '...' macro parameter.
-
-*/
-#define BOOST_VMD_PP_TUPLE_TO_DATA(tuple) \
- VMD_DETAIL_PP_TUPLE_TO_DATA(tuple) \
-/**/
-
 /// Expands to variadic macro data whose arguments are the same as an array's elements.
 /**
 

Modified: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_pplib.hpp
==============================================================================
--- sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_pplib.hpp (original)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_main_pplib.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -8,19 +8,6 @@
 #include <boost/preprocessor/array/enum.hpp>
 #include <boost/preprocessor/list/enum.hpp>
 #include <boost/preprocessor/seq/enum.hpp>
-#include <boost/preprocessor/tuple/elem.hpp>
-#include <boost/preprocessor/tuple/enum.hpp>
-#include <boost/preprocessor/tuple/rem.hpp>
-#include <boost/preprocessor/tuple/reverse.hpp>
-#include <boost/preprocessor/tuple/size.hpp>
-#include <boost/preprocessor/tuple/to_list.hpp>
-#include <boost/preprocessor/tuple/to_seq.hpp>
-#include <boost/preprocessor/variadic/elem.hpp>
-#include <boost/preprocessor/variadic/size.hpp>
-#include <boost/preprocessor/variadic/to_array.hpp>
-#include <boost/preprocessor/variadic/to_list.hpp>
-#include <boost/preprocessor/variadic/to_seq.hpp>
-#include <boost/preprocessor/variadic/to_tuple.hpp>
 
 /*
 
@@ -31,258 +18,6 @@
 /** \file
 */
 
-/// Expands to the number of comma-separated variadic macro data arguments.
-/**
-
- ... = variadic macro data.
-
- returns = the number of comma-separated variadic macro data
- arguments being passed to it.
-
- The value returned can be between 1 and 64.
-
-*/
-#define BOOST_VMD_DATA_SIZE(...) \
- BOOST_PP_VARIADIC_SIZE(__VA_ARGS__) \
-/**/
-
-/// Expands to a particular variadic macro data argument.
-/**
-
- n = number of the variadic macro data argument.
- The number starts from 0 to the number of
- variadic macro data arguments - 1. The maximum
- number for n is 63.
-
- ... = variadic macro data.
-
- returns = the particular macro data argument as specified
- by n. The argument returned can be any valid
- preprocessing token.
-
-*/
-#define BOOST_VMD_DATA_ELEM(n,...) \
- BOOST_PP_VARIADIC_ELEM(n,__VA_ARGS__) \
-/**/
-
-/// Expand to a Boost PP tuple data type.
-/**
-
- ... = variadic macro data.
-
- returns = a Boost PP library tuple data type.
-
- You can use the result of this macro whenever
- you need to pass a Boost PP library tuple as
- data to a Boost PP library macro.
-
-*/
-#define BOOST_VMD_DATA_TO_PP_TUPLE(...) \
- BOOST_PP_VARIADIC_TO_TUPLE(__VA_ARGS__) \
-/**/
-
-/// Expand to a Boost PP array data type.
-/**
-
- ... = variadic macro data.
-
- returns = a Boost PP library array data type.
-
- You can use the result of this macro whenever
- you need to pass a Boost PP library array as
- data to a Boost PP library macro.
-
-*/
-#define BOOST_VMD_DATA_TO_PP_ARRAY(...) \
- BOOST_PP_VARIADIC_TO_ARRAY(__VA_ARGS__) \
-/**/
-
-/// Expand to a Boost PP list data type.
-/**
-
- ... = variadic macro data.
-
- returns = a Boost PP library list data type.
-
- You can use the result of this macro whenever
- you need to pass a Boost PP library list as
- data to a Boost PP library macro.
-
-*/
-#define BOOST_VMD_DATA_TO_PP_LIST(...) \
- BOOST_PP_VARIADIC_TO_LIST(__VA_ARGS__) \
-/**/
-
-/// Expand to a Boost PP sequence data type.
-/**
-
- ... = variadic macro data.
-
- returns = a Boost PP library sequence data type.
-
- You can use the result of this macro whenever
- you need to pass a Boost PP library sequence as
- data to a Boost PP library macro.
-
-*/
-#define BOOST_VMD_DATA_TO_PP_SEQ(...) \
- BOOST_PP_VARIADIC_TO_SEQ(__VA_ARGS__) \
-/**/
-
-/// Expands to the number of elements in a tuple.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = the number of elements in the tuple,
- commonly referred to as the tuple size.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
-*/
-#define BOOST_VMD_PP_TUPLE_SIZE(tuple) \
- BOOST_PP_TUPLE_SIZE(tuple) \
-/**/
-
-/// Expands to a particular tuple element.
-/**
-
- n = number of the tuple element.
- The number starts from 0 to the size of
- the tuple - 1.
-
- tuple = a Boost PP library tuple data type.
-
- returns = the particular tuple element as specified
- by n.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_ELEM
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_ELEM(n,tuple) \
- BOOST_PP_TUPLE_ELEM(n,tuple) \
-/**/
-
-/// Expands to a series of tokens which are equivalent to removing the parentheses from a tuple.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = a series of comma-separated tokens equivalent to removing the parentheses from a tuple.
-
- This result is actually equivalent to the form of variadic macro data
- and can be used as an alternative to BOOST_VMD_PP_TUPLE_TO_DATA to convert
- the tuple to variadic macro data.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_REM_CTOR
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_REM_CTOR(tuple) \
- BOOST_PP_TUPLE_REM_CTOR(tuple) \
-/**/
-
-/// Expands to a tuple whose elements are in reversed order.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = a tuple whose elements are in reversed order
- from the original tuple.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_REVERSE
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_REVERSE(tuple) \
- BOOST_PP_TUPLE_REVERSE(tuple) \
-/**/
-
-/// Expands to a list whose elements are the same as a tuple.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = a list whose elements are the same as the tuple
- that is inputted.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_TO_LIST
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_TO_LIST(tuple) \
- BOOST_PP_TUPLE_TO_LIST(tuple) \
-/**/
-
-/// Expands to a sequence whose elements are the same as a tuple.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = a sequence whose elements are the same as the tuple
- that is inputted.
-
- In the Boost PP library there is no way to calculate
- the size of a tuple, so that the size must be known
- in order to be used by Boost PP library tuple macros.
- With variadic macros the size of a tuple can be
- calculated from the tuple itself.
-
- Therefore this macro is a replacement for the BOOST_PP_TUPLE_TO_SEQ
- macro without the necessity of having to pass a size.
-
-*/
-#define BOOST_VMD_PP_TUPLE_TO_SEQ(tuple) \
- BOOST_PP_TUPLE_TO_SEQ(tuple) \
-/**/
-
-/// Expands to variadic macro data whose arguments are the same as a tuple's elements.
-/**
-
- tuple = a Boost PP library tuple data type.
-
- returns = variadic macro data whose arguments are the same as the
- elements of a tuple that is inputted.
-
- The variadic macro data that is returned is in the form of
- of comma separated arguments. The variadic macro data can be
- passed to any macro which takes variadic macro data in the form
- of a final variadic macro data '...' macro parameter.
-
-*/
-#define BOOST_VMD_PP_TUPLE_TO_DATA(tuple) \
- BOOST_PP_TUPLE_ENUM(tuple) \
-/**/
-
 /// Expands to variadic macro data whose arguments are the same as an array's elements.
 /**
 

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_tuple.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_tuple.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,15 @@
+#if !defined(VMD_TUPLE_HPP)
+#define VMD_TUPLE_HPP
+
+#include "detail/vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#if BOOST_VMD_PPLIB
+#include "vmd_tuple_pplib.hpp"
+#else
+#include "vmd_tuple_native.hpp"
+#endif /* BOOST_VMD_PPLIB */
+
+#endif /* BOOST_VMD_VARIADICS */
+#endif /* VMD_TUPLE_HPP */

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_tuple_native.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_tuple_native.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,174 @@
+#if !defined(VMD_TUPLE_NATIVE_HPP)
+#define VMD_TUPLE_NATIVE_HPP
+
+#include "detail/vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#include "detail/vmd_detail_tuple.hpp"
+
+/*
+
+ The succeeding comments in this file are in doxygen format.
+
+*/
+
+/** \file
+*/
+
+/// Expands to the number of elements in a tuple.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = the number of elements in the tuple,
+ commonly referred to as the tuple size.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+*/
+#define BOOST_VMD_PP_TUPLE_SIZE(tuple) \
+ VMD_DETAIL_PP_TUPLE_SIZE(tuple) \
+/**/
+
+/// Expands to a particular tuple element.
+/**
+
+ n = number of the tuple element.
+ The number starts from 0 to the size of
+ the tuple - 1.
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = the particular tuple element as specified
+ by n.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_ELEM
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_ELEM(n,tuple) \
+ VMD_DETAIL_PP_TUPLE_ELEM(BOOST_VMD_PP_TUPLE_SIZE(tuple),n,tuple) \
+/**/
+
+/// Expands to a series of tokens which are equivalent to removing the parentheses from a tuple.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = a series of comma-separated tokens equivalent to removing the parentheses from a tuple.
+
+ This result is actually equivalent to the form of variadic macro data
+ and can be used as an alternative to BOOST_VMD_PP_TUPLE_TO_DATA to convert
+ the tuple to variadic macro data.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_REM_CTOR
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_REM_CTOR(tuple) \
+ VMD_DETAIL_PP_TUPLE_REM_CTOR(BOOST_VMD_PP_TUPLE_SIZE(tuple),tuple) \
+/**/
+
+/// Expands to a tuple whose elements are in reversed order.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = a tuple whose elements are in reversed order
+ from the original tuple.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_REVERSE
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_REVERSE(tuple) \
+ VMD_DETAIL_PP_TUPLE_REVERSE(BOOST_VMD_PP_TUPLE_SIZE(tuple),tuple) \
+/**/
+
+/// Expands to a list whose elements are the same as a tuple.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = a list whose elements are the same as the tuple
+ that is inputted.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_TO_LIST
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_TO_LIST(tuple) \
+ VMD_DETAIL_PP_TUPLE_TO_LIST(BOOST_VMD_PP_TUPLE_SIZE(tuple),tuple) \
+/**/
+
+/// Expands to a sequence whose elements are the same as a tuple.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = a sequence whose elements are the same as the tuple
+ that is inputted.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_TO_SEQ
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_TO_SEQ(tuple) \
+ VMD_DETAIL_PP_TUPLE_TO_SEQ(BOOST_VMD_PP_TUPLE_SIZE(tuple),tuple) \
+/**/
+
+/// Expands to variadic macro data whose arguments are the same as a tuple's elements.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = variadic macro data whose arguments are the same as the
+ elements of a tuple that is inputted.
+
+ The variadic macro data that is returned is in the form of
+ of comma separated arguments. The variadic macro data can be
+ passed to any macro which takes variadic macro data in the form
+ of a final variadic macro data '...' macro parameter.
+
+*/
+#define BOOST_VMD_PP_TUPLE_TO_DATA(tuple) \
+ VMD_DETAIL_PP_TUPLE_TO_DATA(tuple) \
+/**/
+
+#endif /* BOOST_VMD_VARIADICS */
+#endif /* VMD_TUPLE_NATIVE_HPP */

Added: sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_tuple_pplib.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/boost/variadic_macro_data/vmd_tuple_pplib.hpp 2011-08-03 20:14:37 EDT (Wed, 03 Aug 2011)
@@ -0,0 +1,180 @@
+#if !defined(VMD_TUPLE_PPLIB_HPP)
+#define VMD_TUPLE_PPLIB_HPP
+
+#include "detail/vmd_detail_setup.hpp"
+
+#if BOOST_VMD_VARIADICS
+
+#include <boost/preprocessor/tuple/elem.hpp>
+#include <boost/preprocessor/tuple/enum.hpp>
+#include <boost/preprocessor/tuple/rem.hpp>
+#include <boost/preprocessor/tuple/reverse.hpp>
+#include <boost/preprocessor/tuple/size.hpp>
+#include <boost/preprocessor/tuple/to_list.hpp>
+#include <boost/preprocessor/tuple/to_seq.hpp>
+
+/*
+
+ The succeeding comments in this file are in doxygen format.
+
+*/
+
+/** \file
+*/
+
+/// Expands to the number of elements in a tuple.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = the number of elements in the tuple,
+ commonly referred to as the tuple size.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+*/
+#define BOOST_VMD_PP_TUPLE_SIZE(tuple) \
+ BOOST_PP_TUPLE_SIZE(tuple) \
+/**/
+
+/// Expands to a particular tuple element.
+/**
+
+ n = number of the tuple element.
+ The number starts from 0 to the size of
+ the tuple - 1.
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = the particular tuple element as specified
+ by n.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_ELEM
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_ELEM(n,tuple) \
+ BOOST_PP_TUPLE_ELEM(n,tuple) \
+/**/
+
+/// Expands to a series of tokens which are equivalent to removing the parentheses from a tuple.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = a series of comma-separated tokens equivalent to removing the parentheses from a tuple.
+
+ This result is actually equivalent to the form of variadic macro data
+ and can be used as an alternative to BOOST_VMD_PP_TUPLE_TO_DATA to convert
+ the tuple to variadic macro data.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_REM_CTOR
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_REM_CTOR(tuple) \
+ BOOST_PP_TUPLE_REM_CTOR(tuple) \
+/**/
+
+/// Expands to a tuple whose elements are in reversed order.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = a tuple whose elements are in reversed order
+ from the original tuple.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_REVERSE
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_REVERSE(tuple) \
+ BOOST_PP_TUPLE_REVERSE(tuple) \
+/**/
+
+/// Expands to a list whose elements are the same as a tuple.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = a list whose elements are the same as the tuple
+ that is inputted.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_TO_LIST
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_TO_LIST(tuple) \
+ BOOST_PP_TUPLE_TO_LIST(tuple) \
+/**/
+
+/// Expands to a sequence whose elements are the same as a tuple.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = a sequence whose elements are the same as the tuple
+ that is inputted.
+
+ In the Boost PP library there is no way to calculate
+ the size of a tuple, so that the size must be known
+ in order to be used by Boost PP library tuple macros.
+ With variadic macros the size of a tuple can be
+ calculated from the tuple itself.
+
+ Therefore this macro is a replacement for the BOOST_PP_TUPLE_TO_SEQ
+ macro without the necessity of having to pass a size.
+
+*/
+#define BOOST_VMD_PP_TUPLE_TO_SEQ(tuple) \
+ BOOST_PP_TUPLE_TO_SEQ(tuple) \
+/**/
+
+/// Expands to variadic macro data whose arguments are the same as a tuple's elements.
+/**
+
+ tuple = a Boost PP library tuple data type.
+
+ returns = variadic macro data whose arguments are the same as the
+ elements of a tuple that is inputted.
+
+ The variadic macro data that is returned is in the form of
+ of comma separated arguments. The variadic macro data can be
+ passed to any macro which takes variadic macro data in the form
+ of a final variadic macro data '...' macro parameter.
+
+*/
+#define BOOST_VMD_PP_TUPLE_TO_DATA(tuple) \
+ BOOST_PP_TUPLE_ENUM(tuple) \
+/**/
+
+#endif /* BOOST_VMD_VARIADICS */
+#endif /* VMD_TUPLE_PPLIB_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