|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66909 - in sandbox/statistics/support/boost/assign/v2: chain/checking detail/functor put/generic put/modifier/ext
From: erwann.rogard_at_[hidden]
Date: 2010-11-30 13:26:49
Author: e_r
Date: 2010-11-30 13:26:48 EST (Tue, 30 Nov 2010)
New Revision: 66909
URL: http://svn.boost.org/trac/boost/changeset/66909
Log:
minor upd to boost/assign/v2
Text files modified:
sandbox/statistics/support/boost/assign/v2/chain/checking/twin_values.hpp | 3 ++-
sandbox/statistics/support/boost/assign/v2/detail/functor/new.hpp | 35 +----------------------------------
sandbox/statistics/support/boost/assign/v2/put/generic/parameter.hpp | 8 ++++----
sandbox/statistics/support/boost/assign/v2/put/modifier/ext/incr_lookup.hpp | 2 +-
sandbox/statistics/support/boost/assign/v2/put/modifier/ext/repeat.hpp | 2 +-
5 files changed, 9 insertions(+), 41 deletions(-)
Modified: sandbox/statistics/support/boost/assign/v2/chain/checking/twin_values.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/checking/twin_values.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/checking/twin_values.hpp 2010-11-30 13:26:48 EST (Tue, 30 Nov 2010)
@@ -133,7 +133,8 @@
}
}
{
- T a1 , b1, c1, d1, e1, f1, g1, h1;
+ T a1 = -1, b1 = -1, c1 = -1, d1 = -1,
+ e1 = -1, f1 = -1, g1 = -1, h1 = -1;
typedef typename ref::type_traits::copy_wrapper<T>::type w_;
typedef boost::is_reference_wrapper<w_> is_;
Modified: sandbox/statistics/support/boost/assign/v2/detail/functor/new.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/functor/new.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/functor/new.hpp 2010-11-30 13:26:48 EST (Tue, 30 Nov 2010)
@@ -13,7 +13,7 @@
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
#include <utility>
#else
-#include <memory> // TODO what for?!
+//#include <memory> // TODO what for?!
#include <boost/preprocessor/repetition/repeat_from_to.hpp>
#include <boost/preprocessor/repetition/enum_params.hpp>
#include <boost/preprocessor/repetition/enum_binary_params.hpp>
@@ -91,39 +91,6 @@
static type call(){ return functor_aux::new_<value_>(); }
};
-// --- For testing only --- // TODO remove foo from this file.
-
-struct foo
-{
- int i;
-
- foo() : i(0)
- { }
- foo( int i ) : i(i)
- { }
- foo( int i, int ) : i(i)
- { }
- foo( const char*, int i, int ) : i(i)
- { }
-
- virtual ~foo()
- { }
-};
-
-struct foo_bar : foo
-{
- foo_bar( int i ) : foo(i)
- { }
-
- foo_bar( int i, const char* )
- { }
-};
-
-inline bool operator<( const foo& l, const foo& r )
-{
- return l.i < r.i;
-}
-
}// functor_aux
namespace result_of{
Modified: sandbox/statistics/support/boost/assign/v2/put/generic/parameter.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/generic/parameter.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/generic/parameter.hpp 2010-11-30 13:26:48 EST (Tue, 30 Nov 2010)
@@ -7,8 +7,8 @@
// Boost Software License, Version 1.0. (See accompanying file //
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
//////////////////////////////////////////////////////////////////////////////
-#ifndef BOOST_ASSIGN_V2_PUT_GENERIC_PARAMETER_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_GENERIC_PARAMETER_ER_2010_HPP
+#ifndef BOOST_ASSIGN_V2_PUT_GENERIC_PARAMETER_PAIR_ER_2010_HPP
+#define BOOST_ASSIGN_V2_PUT_GENERIC_PARAMETER_PAIR_ER_2010_HPP
namespace boost{
namespace assign{
@@ -16,10 +16,10 @@
namespace put_parameter{
template<typename F,typename Tag>
- struct helper{
+ struct pair{
typedef F fun_type;
typedef Tag modifier_tag;
- typedef helper<F, Tag> type;
+ typedef pair<F, Tag> type;
};
}// put_parameter
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/ext/incr_lookup.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/ext/incr_lookup.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/ext/incr_lookup.hpp 2010-11-30 13:26:48 EST (Tue, 30 Nov 2010)
@@ -27,7 +27,7 @@
namespace put_parameter{
template<typename OldFun,typename OldTag>
- struct incr_lookup : put_parameter::helper<
+ struct incr_lookup : put_parameter::pair<
functor_aux::identity,
modifier_tag::incr_lookup
>{};
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/ext/repeat.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/ext/repeat.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/ext/repeat.hpp 2010-11-30 13:26:48 EST (Tue, 30 Nov 2010)
@@ -25,7 +25,7 @@
namespace put_parameter{
template<typename OldFun,typename OldTag>
- struct repeat : put_parameter::helper<
+ struct repeat : put_parameter::pair<
OldFun,
modifier_tag::repeat<OldTag>
>{ };
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