Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63323 - sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch
From: cppljevans_at_[hidden]
Date: 2010-06-25 15:11:08


Author: cppljevans
Date: 2010-06-25 15:11:07 EDT (Fri, 25 Jun 2010)
New Revision: 63323
URL: http://svn.boost.org/trac/boost/changeset/63323

Log:
no need for 2 methods for checking args
Text files modified:
   sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/apply_unpack.hpp | 10 +---------
   1 files changed, 1 insertions(+), 9 deletions(-)

Modified: sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/apply_unpack.hpp
==============================================================================
--- sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/apply_unpack.hpp (original)
+++ sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/apply_unpack.hpp 2010-06-25 15:11:07 EDT (Fri, 25 Jun 2010)
@@ -11,12 +11,8 @@
 
 #include <boost/mpl/package_range_c.hpp>
 #include <boost/type_traits/remove_cv.hpp>
-//#define USE_IS_CALLABLE_WITH_ARGS
-#ifdef USE_IS_CALLABLE_WITH_ARGS
-#include <boost/function_types/is_callable_with_args.hpp>
-#else
 #include <boost/function_types/can_be_called.hpp>
-#endif //#ifdef USE_IS_CALLABLE_WITH_ARGS
+
 namespace boost
 {
 namespace composite_storage
@@ -84,11 +80,7 @@
    */
 {
         typedef
- #ifdef USE_IS_CALLABLE_WITH_ARGS
- typename function_types::is_callable_with_args<Functor(Args const&...)>::type
- #else
       typename function_types::can_be_called<Functor(Args const&...)>::type
- #endif
     is_ftor_args_callable;
     return apply_ftor_callable_args
       ( is_ftor_args_callable()


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