Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63944 - sandbox/variadic_templates/libs/composite_storage/sandbox/pack
From: cppljevans_at_[hidden]
Date: 2010-07-13 04:32:42


Author: cppljevans
Date: 2010-07-13 04:32:42 EDT (Tue, 13 Jul 2010)
New Revision: 63944
URL: http://svn.boost.org/trac/boost/changeset/63944

Log:
test change hinted at by Mathias Gaunard in Jul 12 post to comp.lang.c++.moderated.
Text files modified:
   sandbox/variadic_templates/libs/composite_storage/sandbox/pack/one_of_multiple_dispatch.test.cpp | 19 +++++++++++++++++--
   1 files changed, 17 insertions(+), 2 deletions(-)

Modified: sandbox/variadic_templates/libs/composite_storage/sandbox/pack/one_of_multiple_dispatch.test.cpp
==============================================================================
--- sandbox/variadic_templates/libs/composite_storage/sandbox/pack/one_of_multiple_dispatch.test.cpp (original)
+++ sandbox/variadic_templates/libs/composite_storage/sandbox/pack/one_of_multiple_dispatch.test.cpp 2010-07-13 04:32:42 EDT (Tue, 13 Jul 2010)
@@ -25,7 +25,7 @@
   #else
     #define FUNCTOR_CONSTANCY
   #endif
-#define APPLY_UNPACK_DEMO_UNCHECK_ARGS
+#define APPLY_UNPACK_USER_CHECKED_ARGS
 #include <boost/composite_storage/pack/multiple_dispatch/reify_apply.hpp>
 #include <boost/composite_storage/pack/multiple_dispatch/reifier_switch.hpp>
 #include <boost/composite_storage/pack/multiple_dispatch/reifier_visitor.hpp>
@@ -175,11 +175,26 @@
 };
 
 struct functor3
+#ifdef APPLY_UNPACK_USER_CHECKED_ARGS
+: functor_bad_args
+ < functor3
+ , int
+ >
+#endif
 {
+ typedef
+ functor_bad_args
+ < functor3
+ , int
+ >
+ super_type;
+
+ using super_type::operator();
+
     functor3(void)
     {}
     
- typedef int result_type;
+ typedef typename super_type::result_type result_type;
     
     int operator()(void)FUNCTOR_CONSTANCY
     {


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