|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66932 - sandbox/statistics/support/boost/assign/v2/detail/functor
From: erwann.rogard_at_[hidden]
Date: 2010-11-30 17:21:53
Author: e_r
Date: 2010-11-30 17:21:49 EST (Tue, 30 Nov 2010)
New Revision: 66932
URL: http://svn.boost.org/trac/boost/changeset/66932
Log:
costmetic upd in boost/assign/v2
Text files modified:
sandbox/statistics/support/boost/assign/v2/detail/functor/crtp_unary_and_up.hpp | 59 +++++----------------------------------
1 files changed, 8 insertions(+), 51 deletions(-)
Modified: sandbox/statistics/support/boost/assign/v2/detail/functor/crtp_unary_and_up.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/functor/crtp_unary_and_up.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/functor/crtp_unary_and_up.hpp 2010-11-30 17:21:49 EST (Tue, 30 Nov 2010)
@@ -71,62 +71,19 @@
namespace v2{
namespace functor_aux{
- template<typename D,typename F>
- class crtp_unary_and_up
- {
- protected:
+ template<typename D,typename F>
+ class crtp_unary_and_up
+ {
+ protected:
- D& derived(){ return static_cast<D&>(*this); }
- D const& derived()const{ return static_cast<D const&>(*this); }
+ D& derived(){ return static_cast<D&>(*this); }
+ D const& derived()const{ return static_cast<D const&>(*this); }
- public:
+ public:
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-/*
- template<typename Vec>
- struct apply_f
- {
- template<typename T>
- struct op : boost::mpl::eval_if<
- boost::is_reference<T>,
- boost::remove_reference<T>,
- boost::add_const<T>
- >
- {
- };
-
- typedef typename boost::mpl::transform<
- Vec,
- op<boost::mpl::_>
- >::type unrefs_;
- typedef typename boost::mpl::apply1<
- F,
- unrefs_
- >::type type;
- };
-
- template<typename T0,typename...Args>
-// typename boost::mpl::apply1<
-// F,
-// typename boost::mpl::detail::variadic_vector<T0, Args...>::type
-// >::type
- typename apply_f<
- typename boost::mpl::detail::variadic_vector<
- T0,
- Args...
- >::type
- >::type
- operator()(T0&& t0, Args&&...args)const{
- //return this->derived().template impl<T0, Args...>(t0, args...);
- return this->derived().template impl(
- std::forward<T0>( t0 ),
- std::forward<Args>( args )...
- //t0,
- //args...
- );
- }
-*/
+// do nothing
#else
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