|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67818 - in sandbox/statistics/support/boost/assign/v2: . anon chain/aux_ chain/checking chain/traits detail detail/checking detail/functor detail/type_traits detail/type_traits/container put put/compose put/compose/common put/compose/csv put/compose/functor put/generic put/modifier put/modifier/ext put/range put/sub ref ref/anon ref/anon/csv ref/anon/functor ref/detail/convert_traits ref/detail/unwrap ref/fusion ref/fusion_matrix ref/static_array ref/static_array/alloc ref/wrapper
From: erwann.rogard_at_[hidden]
Date: 2011-01-08 19:04:43
Author: e_r
Date: 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
New Revision: 67818
URL: http://svn.boost.org/trac/boost/changeset/67818
Log:
update to boost/assign/v2
Text files modified:
sandbox/statistics/support/boost/assign/v2/anon.hpp | 2
sandbox/statistics/support/boost/assign/v2/anon/cont.hpp | 193 ----------------------------
sandbox/statistics/support/boost/assign/v2/anon/csv.hpp | 84 ------------
sandbox/statistics/support/boost/assign/v2/anon/make.hpp | 50 -------
sandbox/statistics/support/boost/assign/v2/chain/aux_/bitwise_or.hpp | 8
sandbox/statistics/support/boost/assign/v2/chain/aux_/logical_and.hpp | 2
sandbox/statistics/support/boost/assign/v2/chain/aux_/sub.hpp | 29 ++--
sandbox/statistics/support/boost/assign/v2/chain/checking/distinct_values.hpp | 1
sandbox/statistics/support/boost/assign/v2/chain/checking/twin_values.hpp | 133 ++++++++++---------
sandbox/statistics/support/boost/assign/v2/chain/traits/result.hpp | 7
sandbox/statistics/support/boost/assign/v2/detail.hpp | 2
sandbox/statistics/support/boost/assign/v2/detail/checking.hpp | 4
sandbox/statistics/support/boost/assign/v2/detail/checking/array.hpp | 10
sandbox/statistics/support/boost/assign/v2/detail/checking/check_convert.hpp | 16 --
sandbox/statistics/support/boost/assign/v2/detail/checking/check_equal.hpp | 16 --
sandbox/statistics/support/boost/assign/v2/detail/checking/constants.hpp | 34 ++--
sandbox/statistics/support/boost/assign/v2/detail/checking/fifo.hpp | 20 +-
sandbox/statistics/support/boost/assign/v2/detail/checking/iterator.hpp | 1
sandbox/statistics/support/boost/assign/v2/detail/checking/lifo.hpp | 20 +-
sandbox/statistics/support/boost/assign/v2/detail/checking/map.hpp | 1
sandbox/statistics/support/boost/assign/v2/detail/checking/range.hpp | 12 -
sandbox/statistics/support/boost/assign/v2/detail/checking/relational_op.hpp | 26 +-
sandbox/statistics/support/boost/assign/v2/detail/functor.hpp | 2
sandbox/statistics/support/boost/assign/v2/detail/functor/crtp_unary_and_up.hpp | 2
sandbox/statistics/support/boost/assign/v2/detail/type_traits.hpp | 2
sandbox/statistics/support/boost/assign/v2/detail/type_traits/container/is_static_array.hpp | 2
sandbox/statistics/support/boost/assign/v2/detail/type_traits/decay.hpp | 6
sandbox/statistics/support/boost/assign/v2/put.hpp | 7
sandbox/statistics/support/boost/assign/v2/put/compose.hpp | 18 --
sandbox/statistics/support/boost/assign/v2/put/compose/common.hpp | 16 --
sandbox/statistics/support/boost/assign/v2/put/compose/common/forward_parameter.hpp | 94 -------------
sandbox/statistics/support/boost/assign/v2/put/compose/csv.hpp | 19 --
sandbox/statistics/support/boost/assign/v2/put/compose/csv/composer.hpp | 138 --------------------
sandbox/statistics/support/boost/assign/v2/put/compose/csv/forward_seq_arg.hpp | 68 ---------
sandbox/statistics/support/boost/assign/v2/put/compose/csv/held.hpp | 65 ---------
sandbox/statistics/support/boost/assign/v2/put/compose/csv/sub.hpp | 40 -----
sandbox/statistics/support/boost/assign/v2/put/compose/functor.hpp | 19 --
sandbox/statistics/support/boost/assign/v2/put/compose/functor/composer.hpp | 269 ---------------------------------------
sandbox/statistics/support/boost/assign/v2/put/compose/functor/forward_args.hpp | 226 ---------------------------------
sandbox/statistics/support/boost/assign/v2/put/compose/functor/forward_seq_args.hpp | 64 ---------
sandbox/statistics/support/boost/assign/v2/put/compose/functor/sub.hpp | 45 ------
sandbox/statistics/support/boost/assign/v2/put/compose/tag.hpp | 26 ---
sandbox/statistics/support/boost/assign/v2/put/generic/concept_sub.hpp | 2
sandbox/statistics/support/boost/assign/v2/put/generic/crtp.hpp | 9
sandbox/statistics/support/boost/assign/v2/put/modifier.hpp | 8
sandbox/statistics/support/boost/assign/v2/put/modifier/at_next.hpp | 58 --------
sandbox/statistics/support/boost/assign/v2/put/modifier/deduce.hpp | 17 ++
sandbox/statistics/support/boost/assign/v2/put/modifier/ext.hpp | 3
sandbox/statistics/support/boost/assign/v2/put/modifier/ext/incr_lookup.hpp | 87 ------------
sandbox/statistics/support/boost/assign/v2/put/modifier/ext/repeat.hpp | 54 +++++--
sandbox/statistics/support/boost/assign/v2/put/modifier/ext/result_of_modulo.hpp | 50 +++---
sandbox/statistics/support/boost/assign/v2/put/modifier/ext/xxx.hpp | 19 +-
sandbox/statistics/support/boost/assign/v2/put/modifier/insert.hpp | 17 --
sandbox/statistics/support/boost/assign/v2/put/modifier/push.hpp | 17 --
sandbox/statistics/support/boost/assign/v2/put/modifier/push_back.hpp | 17 --
sandbox/statistics/support/boost/assign/v2/put/modifier/push_front.hpp | 17 --
sandbox/statistics/support/boost/assign/v2/put/modifier/xxx.hpp | 60 --------
sandbox/statistics/support/boost/assign/v2/put/range/adaptor.hpp | 70 ----------
sandbox/statistics/support/boost/assign/v2/put/range/convert.hpp | 81 -----------
sandbox/statistics/support/boost/assign/v2/put/sub.hpp | 5
sandbox/statistics/support/boost/assign/v2/put/sub/csv.hpp | 4
sandbox/statistics/support/boost/assign/v2/put/sub/make.hpp | 137 --------------------
sandbox/statistics/support/boost/assign/v2/ref/anon.hpp | 17 --
sandbox/statistics/support/boost/assign/v2/ref/anon/csv.hpp | 25 ---
sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_copy.hpp | 19 --
sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_rebind.hpp | 29 ----
sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_xxx.hpp | 136 --------------------
sandbox/statistics/support/boost/assign/v2/ref/anon/csv/make.hpp | 149 ----------------------
sandbox/statistics/support/boost/assign/v2/ref/anon/csv/nth_result_of.hpp | 37 -----
sandbox/statistics/support/boost/assign/v2/ref/anon/functor.hpp | 21 --
sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_copy.hpp | 18 --
sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_rebind.hpp | 18 --
sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_xxx.hpp | 65 ---------
sandbox/statistics/support/boost/assign/v2/ref/anon/functor/make.hpp | 62 ---------
sandbox/statistics/support/boost/assign/v2/ref/anon/functor/nth_result_of.hpp | 56 --------
sandbox/statistics/support/boost/assign/v2/ref/anon/functor/tag2.hpp | 27 ---
sandbox/statistics/support/boost/assign/v2/ref/detail/convert_traits/add_const.hpp | 2
sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/iterator.hpp | 97 ++++++++-----
sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/range.hpp | 24 +--
sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/reference.hpp | 53 -------
sandbox/statistics/support/boost/assign/v2/ref/fusion/assign_array.hpp | 31 ++--
sandbox/statistics/support/boost/assign/v2/ref/fusion/assign_rebind.hpp | 18 --
sandbox/statistics/support/boost/assign/v2/ref/fusion/link_holder.hpp | 11 +
sandbox/statistics/support/boost/assign/v2/ref/fusion/nth_result_of.hpp | 1
sandbox/statistics/support/boost/assign/v2/ref/fusion/policy.hpp | 4
sandbox/statistics/support/boost/assign/v2/ref/fusion_matrix/container.hpp | 23 ++-
sandbox/statistics/support/boost/assign/v2/ref/fusion_matrix/nth_result_of.hpp | 2
sandbox/statistics/support/boost/assign/v2/ref/static_array.hpp | 17 --
sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc.hpp | 17 --
sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/fast_alloc.hpp | 69 ----------
sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/fast_alloc_fwd.hpp | 30 ----
sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/lazy_alloc.hpp | 84 ------------
sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/lazy_alloc_fwd.hpp | 30 ----
sandbox/statistics/support/boost/assign/v2/ref/static_array/interface.hpp | 240 -----------------------------------
sandbox/statistics/support/boost/assign/v2/ref/wrapper/base.hpp | 51 -------
sandbox/statistics/support/boost/assign/v2/ref/wrapper/copy.hpp | 50 +++++--
sandbox/statistics/support/boost/assign/v2/ref/wrapper/cpp0x.hpp | 15 -
sandbox/statistics/support/boost/assign/v2/ref/wrapper/crtp.hpp | 39 -----
sandbox/statistics/support/boost/assign/v2/ref/wrapper/deduce_assign_tag.hpp | 41 -----
sandbox/statistics/support/boost/assign/v2/ref/wrapper/framework.hpp | 5
sandbox/statistics/support/boost/assign/v2/ref/wrapper/rebind.hpp | 61 --------
101 files changed, 459 insertions(+), 3766 deletions(-)
Modified: sandbox/statistics/support/boost/assign/v2/anon.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/anon.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/anon.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -18,4 +18,4 @@
// using namespace boost::assign::v2;
// boost::copy(csv_anon(x, y, z), std::ostream_iterator<T>(std::cout," "));
-#endif
\ No newline at end of file
+#endif
Modified: sandbox/statistics/support/boost/assign/v2/anon/cont.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/anon/cont.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/anon/cont.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,192 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_ANON_CONT_ER_2010_HPP
-#define BOOST_ASSIGN_V2_ANON_CONT_ER_2010_HPP
-#include <deque>
-#include <boost/range/iterator.hpp>
-#include <boost/range/begin.hpp>
-#include <boost/range/end.hpp>
-#include <boost/range/size.hpp>
-#include <boost/range/size_type.hpp>
-#include <boost/range/iterator_range.hpp> //iterator_range_detail::
-#include <boost/assign/v2/put.hpp>
-//#include <boost/assign/v2/put/range.hpp> // TODO remove
-#include <boost/assign/v2/put/generic/result_of_modulo.hpp>
-#include <boost/assign/v2/put/generic/crtp.hpp>
-#include <boost/assign/v2/detail/relational_op.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace anon_aux{
-
- template<typename T,typename F,typename Tag> class cont;
-
-}// anon_aux
-namespace result_of_modulo{
-
- template<typename T,typename F,typename Tag>
- struct new_fun<anon_aux::cont<T,F,Tag> >
- {
-
- template<typename F1>
- struct apply{ typedef anon_aux::cont<T, F1, Tag> type; };
-
- };
-
- template<typename T,typename F,typename Tag>
- struct new_modifier<anon_aux::cont<T,F,Tag> >
- {
-
- template<typename NewTag>
- struct apply{ typedef anon_aux::cont<T, F, NewTag> type; };
-
- };
-
-}//result_of_modulo
-namespace anon_aux{
-
- template<typename T>
- struct impl{ typedef std::deque<T> type; };
-
- template<typename T,typename F,typename Tag>
- struct cont_modifier_traits
- { };
-
-
- template<typename T,typename F,typename Tag>
- class cont :
- public relational_op_aux::crtp< cont<T,F,Tag> >,
- public put_aux::crtp<
- typename anon_aux::impl<T>::type, F, Tag,
- cont<T,F,Tag>,
- cont_modifier_traits<T,F,Tag>
- >
- {
- typedef typename anon_aux::impl<T>::type impl_;
- typedef cont_modifier_traits<T,F,Tag> modifier_traits_;
- typedef put_aux::crtp<
- impl_, F, Tag, cont, modifier_traits_> put_crtp_;
-
- typedef put_aux::modifier<Tag> modifier_;
-
- public:
-
- typedef T value_type;
- typedef typename boost::range_size<impl_>::type size_type;
- typedef typename boost::range_iterator<impl_>::type iterator;
- typedef typename boost::range_iterator<
- const impl_>::type const_iterator;
-
- // Construct
- cont(){}
- explicit cont(const F& f) : put_crtp_( f ){}
- explicit cont(impl_ const& v, F const& f): put_crtp_( f ), impl( v )
- {
- // Required by crtp when Tag or F is modified.
- }
-
- explicit cont( impl_ const& v, F const& f, modifier_ const& m )
- : put_crtp_( f, m ), impl( v )
- {
- // Required by crtp when Tag or F is modified.
- }
-
- // Deque interface
- iterator begin(){
- return boost::begin( this->impl );
- }
- iterator end(){
- return boost::end( this->impl );
- }
- const_iterator begin()const{
- return boost::begin( this->impl );
- }
- const_iterator end()const{
- return boost::end( this->impl );
- }
-
- typedef typename impl_::reference reference;
- typedef typename impl_::const_reference const_reference;
- typedef typename impl_::difference_type difference_type;
-
- size_type size()const{
- return this->unwrap().size();
- }
- size_type max_size()const{
- return this->unwrap().max_size();
- }
- bool empty()const{
- return this->unwrap().empty();
- }
- reference operator[](size_type n){
- return this->unwrap()[n];
- }
- const_reference operator[](size_type n)const{
- return this->unwrap()[n];
- }
- reference front(){
- return this->unwrap().front();
- }
- const_reference front()const{
- return this->unwrap().front();
- }
- reference back(){
- return this->unwrap().back();
- }
- const_reference back()const{
- return this->unwrap().back();
- }
- void pop_front(){
- this->unwrap().pop_front();
- }
- void pop_back(){
- this->unwrap().pop_back();
- }
- void swap(cont& that){
- this->unwrap().swap( that.unwrap() );
- }
-
- // Note : the modifiers such as push_back() are ommitted as they
- // accessible through the put interface.
-
- // Convert
-
- // TODO remove
- // BOOST_ASSIGN_V2_CONVERT_CONVERT_MF
- // BOOST_ASSIGN_V2_CONVERT_OPERATOR_MF
-
- impl_& unwrap()const{ return this->impl; }
-
- // Relational op
-
- template<typename R>
- bool equal_to(const R& r)const{
- return ::boost::iterator_range_detail::equal(
- (*this), r );
- }
-
- template<typename R>
- bool less_than(const R& r)const{
- return ::boost::iterator_range_detail::less_than(
- (*this), r );
- }
-
- protected:
- mutable impl_ impl;
-
- };
-
-}// anon_aux
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/anon/csv.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/anon/csv.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/anon/csv.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,83 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_ANON_CSV_ER_2010_HPP
-#define BOOST_ASSIGN_V2_ANON_CSV_ER_2010_HPP
-#include <boost/assign/v2/detail/keyword/nil.hpp>
-#include <boost/assign/v2/anon/make.hpp>
-#include <boost/assign/v2/anon/cont.hpp>
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-#else
-#include <boost/preprocessor/repetition/enum_params.hpp>
-#include <boost/preprocessor/repetition/repeat.hpp>
-#include <boost/preprocessor/repetition/repeat_from_to.hpp>
-#include <boost/preprocessor/arithmetic/inc.hpp>
-#include <boost/assign/v2/detail/config/limit_csv_arity.hpp>
-#endif
-
-namespace boost{
-namespace assign{
-namespace v2{
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-namespace csv_anon_aux{
-
- template<typename T,typename R>
- void impl(R& r){}
-
- template<typename T, typename R,typename...Args>
- void impl(
- R& r,
- T const& t,
- Args&&...args
- )
- {
- r( t );
- csv_anon_aux::impl<T>(r, std::forward<Args>( args )... );
- }
-
-}//csv_anon_aux
-
- template<typename T,typename... Args>
- typename result_of::anon<T>::type
- // implicit conversion to T desired
- csv_anon(const T& t, Args const& ... args)
- {
- typedef typename result_of::anon<T>::type result_;
- result_ result = anon<T>( v2::_nil );
- csv_anon_aux::impl<T>(result, t, args...);
- return result;
- }
-
-#else
-#define MACRO1(z, i, data) ( BOOST_PP_CAT(_, i) )
-#define MACRO2(z, N, data)\
- template<typename T>\
- typename result_of::anon<T>::type\
- csv_anon( BOOST_PP_ENUM_PARAMS(N, T const & _) )\
- {\
- return anon<T>( v2::_nil) BOOST_PP_REPEAT(N, MACRO1, ~ );\
- }\
-/**/
-BOOST_PP_REPEAT_FROM_TO(
- 1,
- BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY),
- MACRO2,
- ~
-)
-#undef MACRO1
-#undef MACRO2
-#endif
-
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/anon/make.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/anon/make.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/anon/make.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,49 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_ANON_MAKE_ER_2010_HPP
-#define BOOST_ASSIGN_V2_ANON_MAKE_ER_2010_HPP
-#include <boost/mpl/bool.hpp>
-#include <boost/mpl/assert.hpp>
-#include <boost/utility/enable_if.hpp>
-#include <boost/type_traits/remove_cv.hpp>
-#include <boost/assign/v2/detail/keyword/nil.hpp>
-#include <boost/assign/v2/anon/cont.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace result_of{
-
- template<typename T>
- struct anon
- {
- typedef typename boost::remove_cv<T>::type t_;
- typedef typename anon_aux::impl<t_>::type cont_;
- typedef result_of::put<cont_> traits_;
- typedef typename traits_::f_ f_;
- typedef typename traits_::modifier_tag_ modifier_tag_;
- typedef anon_aux::cont<t_,f_,modifier_tag_> type;
- };
-
-}// result_of
-
- template<typename T>
- typename result_of::anon<T>::type
- anon( keyword_aux::nil )
- {
- typedef typename result_of::anon<T>::type result_;
- return result_();
- }
-
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/chain/aux_/bitwise_or.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/aux_/bitwise_or.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/aux_/bitwise_or.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -14,7 +14,6 @@
#include <boost/mpl/void.hpp>
#include <boost/assign/v2/chain/traits/result.hpp>
#include <boost/assign/v2/chain/aux_/adaptor.hpp>
-#include <boost/assign/v2/chain/aux_/sub.hpp>
// Design:
// - The original design is boost::chain in RangeEx
@@ -24,16 +23,13 @@
// - Constness is determined by that of the elements in each range, not that
// of the range.
// - Finally, MPG proposed a way to compose chains http://gist.github.com/287791
-// and a variant of it is used below.
namespace boost{
namespace assign{
namespace v2{
-namespace adaptor{
namespace{
const chain_aux::adaptor2<> _chain = chain_aux::adaptor2<>();
}
-}// adaptor
namespace result_of{
template<typename R1, typename R2, typename Tag = use_default>
@@ -43,12 +39,12 @@
namespace chain_aux{
#define BOOST_ASSIGN_V2_FRAMEWORK_CHAIN(U1) \
- template<typename R1,typename U2,typename Tag> \
+ template<typename R1, typename U2, typename Tag> \
typename chain_aux::result<U1, U2, Tag>::type \
operator|(U1 & r1, chain_aux::adaptor1<U2, Tag> const & h) \
{ \
typedef chain_aux::result<U1, U2, Tag> caller_; \
- return chain_aux::make_sub( caller_::call( r1, h.value ) ); \
+ return caller_::call( r1, h.value ); \
} \
\
/**/
Modified: sandbox/statistics/support/boost/assign/v2/chain/aux_/logical_and.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/aux_/logical_and.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/aux_/logical_and.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -27,7 +27,7 @@
>::type \
operator&&(U1& r1, U2 & r2) \
{ \
- return r1 | adaptor::_chain( r2 ); \
+ return r1 | _chain( r2 ); \
} \
*/
/**/
Modified: sandbox/statistics/support/boost/assign/v2/chain/aux_/sub.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/aux_/sub.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/aux_/sub.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,3 +1,5 @@
+// TODO remove file
+/*
//////////////////////////////////////////////////////////////////////////////
// Boost.Assign v2 //
// //
@@ -18,12 +20,8 @@
namespace v2{
namespace chain_aux{
- // Adds a conversion capability to a range
- //
- // TODO : for now relational_op is disabled as conflicts with
- // iterator_range's implem.
template<typename R>
- struct sub : R //, relational_op_aux::crtp< sub<R> >
+ struct sub : R , relational_op_aux::crtp< sub<R> >
{
typedef R super_t;
@@ -32,16 +30,16 @@
sub(super_t const& s):super_t( s ){}
// Relational op
- //template<typename R1>
- //bool equal_to(const R1& r)const{
- // return ::boost::iterator_range_detail::equal(
- // (*this), r );
- //}
- //template<typename R1>
- //bool less_than(const R& r)const{
- // return ::boost::iterator_range_detail::less_than(
- // (*this), r );
- //}
+ template<typename R1>
+ bool equal_to(const R1& r)const{
+ return ::boost::iterator_range_detail::equal(
+ (*this), r );
+ }
+ template<typename R1>
+ bool less_than(const R& r)const{
+ return ::boost::iterator_range_detail::less_than(
+ (*this), r );
+ }
};
@@ -54,3 +52,4 @@
}// boost
#endif
+*/
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/chain/checking/distinct_values.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/checking/distinct_values.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/checking/distinct_values.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -49,7 +49,6 @@
}\
namespace chk = checking::container;\
{\
- using namespace adaptor;\
chk::do_check( vec1 | _chain( vec2 ) | _chain( vec3 ) );\
}\
}\
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 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -13,6 +13,7 @@
#include <vector>
#include <boost/mpl/eval_if.hpp>
#include <boost/mpl/identity.hpp>
+#include <boost/mpl/assert.hpp>
#include <boost/range/algorithm/copy.hpp>
#include <boost/assign/v2/detail/checking/range.hpp>
#include <boost/assign/v2/ref/detail/unwrap/range.hpp>
@@ -27,52 +28,59 @@
namespace chain{
namespace twin_values{
-#define BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl_inner( the_value )\
- typedef v2::chain_traits::use_lvalue<cr1_, cr2_ > use_lvalue_; \
- BOOST_STATIC_ASSERT( use_lvalue_::value == the_value ); \
- typedef typename boost::mpl::eval_if_c< \
- the_value, \
- boost::mpl::identity<boost::mpl::void_>, \
- v2::result_of::chain<cr1_, cr2_> \
- >::type result_; \
-/**/
-
-#define BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl(qual_v1, qual_e2, qual_v2, \
- the_value )\
- { \
- typedef std::vector<T> qual_v1 vec1_; \
- typedef typename assign::v2::ref::type_traits::copy_wrapper< \
- T qual_e2>::type w_; \
- typedef std::vector<w_> qual_v2 vec2_; \
- typedef typename ref::result_of::unwrap_range<vec1_>::type r1_; \
- typedef typename ref::result_of::unwrap_range<vec2_>::type r2_; \
- { \
- typedef r1_ cr1_;\
- typedef r2_ cr2_;\
- BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl_inner(the_value) \
- } \
- { \
- typedef r1_ cr1_;\
- typedef r2_ cr2_;\
- BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl_inner(the_value) \
- } \
- { \
- typedef r1_ cr1_;\
- typedef r2_ const cr2_;\
- BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl_inner(the_value) \
- } \
- { \
- typedef r1_ const cr1_;\
- typedef r2_ cr2_;\
- BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl_inner(the_value) \
- } \
- { \
- typedef r1_ const cr1_;\
- typedef r2_ const cr2_;\
- BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl_inner(the_value) \
- } \
- } \
- /**/
+template<typename cr1_, typename cr2_, bool the_value>
+void verify_use_lvalue()
+{
+ typedef v2::chain_traits::use_lvalue<cr1_, cr2_> use_lvalue_;
+ BOOST_STATIC_ASSERT( use_lvalue_::value == the_value );
+ typedef typename boost::mpl::eval_if_c<
+ the_value,
+ boost::mpl::identity<boost::mpl::void_>, // why?
+ v2::result_of::chain<cr1_, cr2_>
+ >::type result_;
+}
+
+template<bool x, typename T>
+struct add_const_if : boost::mpl::eval_if_c<
+ x, boost::add_const<T>, boost::mpl::identity<T>
+>{};
+
+template<typename T, bool qual_v1, bool qual_e2, bool qual_v2, bool the_value>
+void verify_mpl()
+{
+ namespace as2 = assign::v2;
+ typedef std::vector<T> vec_t_;
+ typedef typename add_const_if<qual_v1, vec_t_ >::type vec1_;
+ typedef typename as2::ref::type_traits::copy_wrapper<
+ typename add_const_if<qual_e2, T>::type
+ >::type w_;
+ typedef std::vector<w_> vec_w_;
+ typedef typename add_const_if<qual_v2, vec_w_ >::type vec2_;
+
+ typedef typename ref::result_of::unwrap_range<vec1_>::type r1_;
+ typedef typename ref::result_of::unwrap_range<vec2_>::type r2_;
+
+ {
+ typedef r1_ cr1_;
+ typedef r2_ cr2_;
+ verify_use_lvalue<cr1_, cr2_, the_value>();
+ }
+ {
+ typedef r1_ cr1_;
+ typedef r2_ const cr2_;
+ verify_use_lvalue<cr1_, cr2_, the_value>();
+ }
+ {
+ typedef r1_ cr1_;
+ typedef r2_ const cr2_;
+ verify_use_lvalue<cr1_, cr2_, the_value>();
+ }
+ {
+ typedef r1_ const cr1_;
+ typedef r2_ const cr2_;
+ verify_use_lvalue<cr1_, cr2_, the_value>();
+ }
+}
template<typename T>
void do_check()
@@ -83,23 +91,25 @@
typedef v2::result_of::chain<vec_,vec_> caller1_;
typedef typename caller1_::type range1_;
typedef typename boost::range_reference<range1_>::type ref1_;
- typedef boost::is_same<ref1_,T&> is_same1_;
- BOOST_STATIC_ASSERT(is_same1_::value);
+ typedef boost::is_same<ref1_, T&> is_same1_;
+ BOOST_MPL_ASSERT((is_same1_));
typedef v2::result_of::chain<range1_ const,vec_> caller2_;
typedef typename caller2_::type range2_;
typedef typename boost::range_reference<range2_>::type ref2_;
- typedef boost::is_same<ref2_,T &> is_same2_;
- BOOST_STATIC_ASSERT(is_same2_::value);
+ typedef boost::is_same<ref2_, T&> is_same2_;
+ BOOST_MPL_ASSERT((is_same2_));
}
-// (qual_v1, qual_e2 , qual_v2 , the_value)
-BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl( , , , true )
-BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl( , , const , true )
-BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl( , const , , false )
-BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl( , const , const , false )
-BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl( const , , , false )
-BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl( const , , const , false )
-BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl( const , const , , false )
-BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl( const , const , const , false )
+
+// verify_mpl<T, qual_v1, qual_e2 , qual_v2 , the_value>()
+ verify_mpl<T, false , false , false , true >();
+ //verify_mpl<T, false , false , true , true >();
+ //verify_mpl<T, false , true , false , false >();
+ //verify_mpl<T, false , true , true , false >();
+ //verify_mpl<T, true , false , false , false >();
+ //verify_mpl<T, true , false , true , false >();
+ //verify_mpl<T, true , true , false , false >();
+ //verify_mpl<T, true , true , true , false >();
+/*
// runtime checks
{
@@ -158,6 +168,7 @@
if(a1 && b1 && c1 && d1 && e1 && f1 && g1 && h1){}
}
}// runtime checks
+*/
}// do_check
}// twin_values
@@ -167,8 +178,4 @@
}// assign
}// boost
-#undef BOOST_ASSIGN_V2_CHAIN_CHECKING_run
-#undef BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl
-#undef BOOST_ASSIGN_V2_CHAIN_CHECKING_mpl_inner
-
#endif
Modified: sandbox/statistics/support/boost/assign/v2/chain/traits/result.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/traits/result.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/traits/result.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -28,14 +28,11 @@
boost::mpl::identity< chain_traits::range_r<R1, R2, Tag> >
>::type caller_;
- typedef typename caller_::type super_;
- typedef chain_aux::sub<super_> type;
+ typedef typename caller_::type type;
static type call(R1& r1, R2& r2)
{
- return type(
- caller_::call( r1, r2 )
- );
+ return caller_::call( r1, r2 );
}
};
Modified: sandbox/statistics/support/boost/assign/v2/detail.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -15,7 +15,7 @@
#include <boost/assign/v2/detail/fwd.hpp>
#include <boost/assign/v2/detail/keyword.hpp>
#include <boost/assign/v2/detail/mpl.hpp>
-#include <boost/assign/v2/detail/relational_op.hpp>
+/*#include <boost/assign/v2/detail/relational_op.hpp>*/
#include <boost/assign/v2/detail/type_traits.hpp>
// Don't include
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -11,8 +11,6 @@
#define BOOST_ASSIGN_V2_DETAIL_CHECKING_ER_2010_HPP
#include <boost/assign/v2/detail/checking/array.hpp>
-#include <boost/assign/v2/detail/checking/assert.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
#include <boost/assign/v2/detail/checking/container.hpp>
#include <boost/assign/v2/detail/checking/constants.hpp>
#include <boost/assign/v2/detail/checking/deduce_check.hpp>
@@ -20,6 +18,6 @@
#include <boost/assign/v2/detail/checking/lifo.hpp>
#include <boost/assign/v2/detail/checking/map.hpp>
#include <boost/assign/v2/detail/checking/range.hpp>
-#include <boost/assign/v2/detail/checking/relational_op.hpp>
+/*#include <boost/assign/v2/detail/checking/relational_op.hpp>*/
#endif
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/array.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/array.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/array.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -9,7 +9,7 @@
//////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_ASSIGN_V2_CHECKING_ARRAY_ER_2010_HPP
#define BOOST_ASSIGN_V2_CHECKING_ARRAY_ER_2010_HPP
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
+#include <boost/assign/v2/detail/checking/check.hpp>
#include <boost/assign/v2/detail/checking/constants.hpp>
#include <boost/assign/v2/detail/type_traits/container/is_static_array.hpp>
@@ -19,14 +19,14 @@
namespace checking{
template<typename V>
- void do_check(container_tag::static_array,V const& ar1)
+ void do_check(container_tag::static_array, V const& ar1)
{
- BOOST_ASSIGN_V2_CHECK_EQUAL( ar1.empty() , false );
+ BOOST_ASSIGN_V2_CHECK( !ar1.empty() );
V ar = ar1;
namespace ns = checking::constants;
ns::do_check(
- ar[0],ar[1],ar[2],ar[3],
- ar[4],ar[5],ar[6],ar[7]
+ ar[0], ar[1], ar[2], ar[3],
+ ar[4], ar[5], ar[6], ar[7]
);
}
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/check_convert.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/check_convert.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/check_convert.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,17 +1 @@
// TODO remove file
-
-/*
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-
-#ifndef BOOST_ASSIGN_V2_check_convert
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#define BOOST_ASSIGN_V2_check_convert do_check( from | adaptor::put_convert<to_>() );
-#else
-#define BOOST_ASSIGN_V2_check_convert \
- do_check( from | adaptor::put_convert<to_>() ); \
- to_ to; to = from; \
- do_check( to ); \
-#endif
-#endif
-
-*/
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/check_equal.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/check_equal.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/check_equal.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,15 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_CHECK_EQUAL
-#include <boost/assert.hpp>
-#define BOOST_ASSIGN_V2_CHECK_EQUAL( a , b ) BOOST_ASSERT( a == b )
-#endif
-
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/constants.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/constants.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/constants.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -13,7 +13,7 @@
#include <boost/range.hpp>
#include <boost/array.hpp>
#include <boost/numeric/conversion/converter.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
+#include <boost/assign/v2/detail/checking/check.hpp>
namespace boost{
namespace assign{
@@ -55,14 +55,14 @@
const T& e1,const T& f1,const T& g1,const T& h1
)
{
- BOOST_ASSIGN_V2_CHECK_EQUAL( a , a1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( b , b1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( c , c1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( d , d1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( e , e1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( f , f1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( g , g1 );
- BOOST_ASSIGN_V2_CHECK_EQUAL( h , h1 );
+ BOOST_ASSIGN_V2_CHECK( a == a1 );
+ BOOST_ASSIGN_V2_CHECK( b == b1 );
+ BOOST_ASSIGN_V2_CHECK( c == c1 );
+ BOOST_ASSIGN_V2_CHECK( d == d1 );
+ BOOST_ASSIGN_V2_CHECK( e == e1 );
+ BOOST_ASSIGN_V2_CHECK( f == f1 );
+ BOOST_ASSIGN_V2_CHECK( g == g1 );
+ BOOST_ASSIGN_V2_CHECK( h == h1 );
}
namespace sorted{
@@ -74,14 +74,14 @@
)
{
namespace ns = checking::constants;
- BOOST_ASSIGN_V2_CHECK_EQUAL( a1, ns::g );
- BOOST_ASSIGN_V2_CHECK_EQUAL( b1, ns::a );
- BOOST_ASSIGN_V2_CHECK_EQUAL( c1, ns::e );
- BOOST_ASSIGN_V2_CHECK_EQUAL( d1, ns::c );
- BOOST_ASSIGN_V2_CHECK_EQUAL( e1, ns::d );
- BOOST_ASSIGN_V2_CHECK_EQUAL( f1, ns::b );
- BOOST_ASSIGN_V2_CHECK_EQUAL( g1, ns::h );
- BOOST_ASSIGN_V2_CHECK_EQUAL( h1, ns::f );
+ BOOST_ASSIGN_V2_CHECK( a1 == ns::g );
+ BOOST_ASSIGN_V2_CHECK( b1 == ns::a );
+ BOOST_ASSIGN_V2_CHECK( c1 == ns::e );
+ BOOST_ASSIGN_V2_CHECK( d1 == ns::c );
+ BOOST_ASSIGN_V2_CHECK( e1 == ns::d );
+ BOOST_ASSIGN_V2_CHECK( f1 == ns::b );
+ BOOST_ASSIGN_V2_CHECK( g1 == ns::h );
+ BOOST_ASSIGN_V2_CHECK( h1 == ns::f );
}
}// sorted
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/fifo.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/fifo.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/fifo.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -10,7 +10,7 @@
#ifndef BOOST_ASSIGN_V2_CHECKING_FIFO_ER_2010_HPP
#define BOOST_ASSIGN_V2_CHECKING_FIFO_ER_2010_HPP
#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
+#include <boost/assign/v2/detail/checking/check.hpp>
#include <boost/assign/v2/detail/type_traits/container/is_fifo.hpp>
namespace boost{
@@ -23,15 +23,15 @@
{
V v = v1;
using namespace constants;
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.front() , a ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.front() , b ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.front() , c ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.front() , d ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.front() , e ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.front() , f ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.front() , g ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.front() , h ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.empty() , true);
+ BOOST_ASSIGN_V2_CHECK( v.front() == a ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.front() == b ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.front() == c ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.front() == d ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.front() == e ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.front() == f ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.front() == g ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.front() == h ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.empty() == true);
}
}// checking
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/iterator.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/iterator.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/iterator.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -10,7 +10,6 @@
#ifndef BOOST_ASSIGN_V2_CHECKING_ITERATOR_ER_2010_HPP
#define BOOST_ASSIGN_V2_CHECKING_ITERATOR_ER_2010_HPP
#include <boost/next_prior.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
#include <boost/assign/v2/detail/checking/constants.hpp>
namespace boost{
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/lifo.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/lifo.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/lifo.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -9,7 +9,7 @@
//////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_ASSIGN_V2_CHECKING_LIFO_ER_2010_HPP
#define BOOST_ASSIGN_V2_CHECKING_LIFO_ER_2010_HPP
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
+#include <boost/assign/v2/detail/checking/check.hpp>
#include <boost/assign/v2/detail/checking/constants.hpp>
#include <boost/assign/v2/detail/type_traits/container/is_lifo.hpp>
@@ -23,15 +23,15 @@
{
using namespace checking::constants;
V v = v1;
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.top() , h ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.top() , g ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.top() , f ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.top() , e ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.top() , d ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.top() , c ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.top() , b ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.top() , a ); v.pop();
- BOOST_ASSIGN_V2_CHECK_EQUAL( v.empty() , true );
+ BOOST_ASSIGN_V2_CHECK( v.top() == h ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.top() == g ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.top() == f ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.top() == e ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.top() == d ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.top() == c ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.top() == b ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.top() == a ); v.pop();
+ BOOST_ASSIGN_V2_CHECK( v.empty() == true );
}
}// checking
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/map.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/map.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/map.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -12,7 +12,6 @@
#include <boost/range/begin.hpp>
#include <boost/utility.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
#include <boost/assign/v2/detail/checking/constants.hpp>
#include <boost/assign/v2/detail/type_traits/container/is_map.hpp>
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/range.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/range.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/range.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -14,7 +14,7 @@
#include <boost/range/end.hpp>
#include <boost/assign/v2/detail/type_traits/container/is_range.hpp>
#include <boost/assign/v2/detail/type_traits/container/is_sorted.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
+#include <boost/assign/v2/detail/checking/check.hpp>
#include <boost/assign/v2/detail/checking/iterator.hpp>
namespace boost{
@@ -27,9 +27,8 @@
{
namespace ns = checking::iterator;
ns::do_check( boost::begin( r ) );
- BOOST_ASSIGN_V2_CHECK_EQUAL(
- boost::next( boost::begin( r ), 8 ),
- boost::end( r )
+ BOOST_ASSIGN_V2_CHECK(
+ boost::next( boost::begin( r ), 8 ) == boost::end( r )
);
}
@@ -38,9 +37,8 @@
{
namespace ns = checking::iterator::sorted;
ns::do_check( boost::begin( r ) );
- BOOST_ASSIGN_V2_CHECK_EQUAL(
- boost::next( boost::begin( r ), 8 ) ,
- boost::end( r )
+ BOOST_ASSIGN_V2_CHECK(
+ boost::next( boost::begin( r ), 8 ) == boost::end( r )
);
}
Modified: sandbox/statistics/support/boost/assign/v2/detail/checking/relational_op.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/checking/relational_op.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/relational_op.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -11,7 +11,7 @@
#define BOOST_ASSIGN_V2_CHECKING_RELATIONAL_OP_ER_2010_HPP
#include <boost/array.hpp>
#include <boost/assign/v2/detail/checking/constants.hpp>
-#include <boost/assign/v2/detail/checking/check_equal.hpp>
+#include <boost/assign/v2/detail/checking/check.hpp>
namespace boost{
namespace assign{
@@ -32,19 +32,19 @@
ar[3] = d; ar[4] = e; ar[5] = f;
ar[6] = g; ar[7] = h;
}
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar == r), true );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar != r), false );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar < r), false );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar > r), false );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar <= r), true );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar >= r), true );
+ BOOST_ASSIGN_V2_CHECK( (ar == r) );
+ BOOST_ASSIGN_V2_CHECK( !(ar != r) );
+ BOOST_ASSIGN_V2_CHECK( !(ar < r) );
+ BOOST_ASSIGN_V2_CHECK( !(ar > r) );
+ BOOST_ASSIGN_V2_CHECK( (ar <= r) );
+ BOOST_ASSIGN_V2_CHECK( (ar >= r) );
++ar[2];
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar == r), false );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar != r), true );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar < r), false );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar > r), true );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar <= r), false );
- BOOST_ASSIGN_V2_CHECK_EQUAL( (ar >= r), true );
+ BOOST_ASSIGN_V2_CHECK( !(ar == r) );
+ BOOST_ASSIGN_V2_CHECK( (ar != r) );
+ BOOST_ASSIGN_V2_CHECK( !(ar < r) );
+ BOOST_ASSIGN_V2_CHECK( (ar > r) );
+ BOOST_ASSIGN_V2_CHECK( !(ar <= r) );
+ BOOST_ASSIGN_V2_CHECK( (ar >= r) );
}
Modified: sandbox/statistics/support/boost/assign/v2/detail/functor.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/functor.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/functor.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -15,4 +15,4 @@
#include <boost/assign/v2/detail/functor/identity.hpp>
#include <boost/assign/v2/detail/functor/new.hpp>
-#endif
\ No newline at end of file
+#endif
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 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -119,7 +119,7 @@
template<BOOST_PP_ENUM_PARAMS(N, typename T)> \
typename boost::mpl::apply1< \
F, \
- boost::mpl::vector<BOOST_PP_ENUM_PARAMS(N, T)> \
+ BOOST_PP_CAT(boost::mpl::vector,N)<BOOST_PP_ENUM_PARAMS(N, T)> \
>::type \
operator()( BOOST_PP_ENUM_BINARY_PARAMS(N, T, &_) )const{ \
return this->derived().template impl< \
Modified: sandbox/statistics/support/boost/assign/v2/detail/type_traits.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/type_traits.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/type_traits.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -10,9 +10,7 @@
#ifndef BOOST_ASSIGN_V2_TYPE_TRAITS_ER_2010_HPP
#define BOOST_ASSIGN_V2_TYPE_TRAITS_ER_2010_HPP
-// #include <boost/assign/v2/detail/type_traits/decay.hpp> // TODO (maybe) remove
#include <boost/assign/v2/detail/type_traits/has_value_type.hpp>
-#include <boost/assign/v2/detail/type_traits/is_stl_pair.hpp>
#include <boost/assign/v2/detail/type_traits/meta_convert.hpp>
#include <boost/assign/v2/detail/type_traits/value.hpp>
#include <boost/assign/v2/detail/type_traits/container.hpp>
Modified: sandbox/statistics/support/boost/assign/v2/detail/type_traits/container/is_static_array.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/type_traits/container/is_static_array.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/type_traits/container/is_static_array.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -44,4 +44,4 @@
}// assign
}// boost
-#endif
\ No newline at end of file
+#endif
Modified: sandbox/statistics/support/boost/assign/v2/detail/type_traits/decay.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/detail/type_traits/decay.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/detail/type_traits/decay.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -12,16 +12,14 @@
#include <boost/mpl/eval_if.hpp>
#include <boost/type_traits/is_array.hpp>
#include <boost/type_traits/decay.hpp>
-
-// TODO (maybe) remove file
+#include <boost/type_traits/add_const.hpp>
namespace boost{
namespace assign{
namespace v2{
namespace type_traits{
- // Add constness to array parameters
- // to support string literals properly
+ // To support string literals properly
template< class T >
struct decay : boost::mpl::eval_if<
::boost::is_array<T>,
Modified: sandbox/statistics/support/boost/assign/v2/put.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -10,14 +10,11 @@
#ifndef BOOST_ASSIGN_V2_PUT_ER_2010_HPP
#define BOOST_ASSIGN_V2_PUT_ER_2010_HPP
-#include <boost/assign/v2/put/compose.hpp>
#include <boost/assign/v2/put/generic.hpp>
#include <boost/assign/v2/put/modifier.hpp>
-#include <boost/assign/v2/put/range.hpp>
+#include <boost/assign/v2/put/pipe.hpp>
#include <boost/assign/v2/put/sub.hpp>
-// Basic usage:
-// using namespace boost::assign::v2;
-// cont | adaptor::_csv_put(x, y, z)
+
#endif
Modified: sandbox/statistics/support/boost/assign/v2/put/compose.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,17 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_ER_2010_HPP
-
-#include <boost/assign/v2/put/compose/common.hpp>
-#include <boost/assign/v2/put/compose/functor.hpp>
-#include <boost/assign/v2/put/compose/csv.hpp>
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/common.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/common.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/common.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,15 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_COMMON_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_COMMON_ER_2010_HPP
-
-#include <boost/assign/v2/put/compose/common/forward_parameter.hpp>
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/common/forward_parameter.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/common/forward_parameter.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/common/forward_parameter.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,93 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_FORWARD_PARAMETER_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_FORWARD_PARAMETER_ER_2010_HPP
-#include <boost/mpl/apply.hpp>
-#include <boost/mpl/at.hpp>
-#include <boost/mpl/fold.hpp>
-#include <boost/mpl/placeholders.hpp>
-#include <boost/mpl/size.hpp>
-#include <boost/type_traits/remove_cv.hpp>
-#include <boost/type_traits/remove_reference.hpp>
-#include <boost/assign/v2/put/generic/result_of_modulo.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_compose_aux{
-
- template<std::size_t N,typename Pars, typename T,
- bool exit = (N == boost::mpl::size<Pars>::value)>
- struct result_of_forward_parameter
- {
- typedef typename boost::mpl::at_c<Pars, N>::type at_;
- typedef result_of_modulo::generic<T> meta_;
- typedef typename boost::mpl::apply1<
- meta_,
- at_
- >::type new_t_;
-
- typedef result_of_forward_parameter<N+1, Pars, new_t_> next_;
-
- typedef typename next_::type type;
-
- template<typename H>
- static type call(H const& pars_holder, T const& t)
- {
- typedef boost::mpl::int_<N> int_;
- return next_::call(
- pars_holder,
- t % pars_holder.static_lookup( int_() )
- );
- }
-
- };
-
- template<std::size_t N,typename Pars, typename T>
- struct result_of_forward_parameter<N, Pars, T, true>
- {
-
- typedef T type;
-
- template<typename H>
- static type call(H const& pars_holder, T const& t)
- {
- return t;
- }
-
- };
-
- template<typename Pars, typename T,typename C>
- typename result_of_forward_parameter<0, Pars, T>::type
- forward_parameter(
- T const& object,
- C const& c
- )
- {
- typedef result_of_forward_parameter<0, Pars, T> caller_;
- return caller_::call( c.parameters(), object );
- }
-
-}// put_compose_aux
-namespace result_of{
-
- template<typename T,typename Pars>
- struct forward_parameter : put_compose_aux::result_of_forward_parameter<
- 0,
- Pars,
- T
- >{};
-
-}// result_of
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/csv.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/csv.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/csv.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,18 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_CSV_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_CSV_ER_2010_HPP
-
-#include <boost/assign/v2/put/compose/csv/held.hpp>
-#include <boost/assign/v2/put/compose/csv/composer.hpp>
-#include <boost/assign/v2/put/compose/csv/forward_seq_arg.hpp>
-#include <boost/assign/v2/put/compose/csv/sub.hpp>
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/csv/composer.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/csv/composer.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/csv/composer.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,137 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_CSV_COMPOSER_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_CSV_COMPOSER_ER_2010_HPP
-#include <boost/preprocessor/arithmetic/inc.hpp>
-#include <boost/preprocessor/repetition/repeat.hpp>
-#include <boost/preprocessor/repetition/repeat_from_to.hpp>
-#include <boost/preprocessor/repetition/enum_params.hpp>
-#include <boost/preprocessor/repetition/enum_binary_params.hpp>
-#include <boost/mpl/apply.hpp>
-#include <boost/mpl/push_back.hpp>
-#include <boost/mpl/size.hpp>
-#include <boost/mpl/aux_/na.hpp>
-#include <boost/mpl/vector/vector0.hpp>
-#include <boost/assign/v2/detail/config/limit_csv_arity.hpp>
-#include <boost/assign/v2/ref/anon/csv/assign_copy.hpp>
-#include <boost/assign/v2/ref/fusion/nth_result_of.hpp>
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-#include <boost/assign/v2/put/compose/csv/held.hpp>
-
-namespace boost{
- struct use_default;
-namespace assign{
-namespace v2{
-namespace put_compose_csv_aux{
-
- template<typename Pars = boost::mpl::vector0<> >
- class composer
- {
-
- typedef boost::use_default tag2_;
- typedef v2::ref::assign_copy::nth_result_of::fusion<tag2_> meta1_;
-
- public:
-
- BOOST_STATIC_CONSTANT(
- std::size_t,
- static_parameters_size = boost::mpl::size<Pars>::value
- );
-
- typedef typename boost::mpl::apply1<meta1_, Pars>::type pars_cont_type;
-
- composer(){}
- explicit composer(pars_cont_type const& p) : pars_cont( p ){}
-
- template<typename T>
- struct modulo_result
- {
- typedef typename boost::mpl::push_back<
- Pars,
- T const
- >::type new_;
- typedef composer<new_> type;
- };
-
- template<typename T>
- typename modulo_result<T>::type
- operator%(T const& t)const
- {
- typedef typename modulo_result<T>::type result_;
- return result_( this->pars_cont( t ) );
- }
-
- template<std::size_t N, typename U = boost::mpl::na>
- struct result{
- typedef put_compose_csv_aux::held<Pars, N, U> type;
- };
-
- typename result<0>::type
- operator()()const
- {
- typedef typename result<0>::type result_;
- namespace ns = ref::assign_copy;
- return result_(
- *this,
- ns::csv_anon( _nil )
- );
- }
-
-#define MACRO1(N, U)\
- namespace ns = ref::assign_copy;\
- return result_( \
- this->pars_cont, \
- ns::csv_anon<U>( BOOST_PP_ENUM_PARAMS(N, _) ) \
- );\
-/**/
-
-#define MACRO2(z, N, data)\
- template<typename T>\
- typename result<N, T>::type\
- operator()( BOOST_PP_ENUM_PARAMS(N, T &_) )const \
- { \
- typedef typename result<N, T>::type result_;\
- MACRO1( N, T )\
- } \
- template<typename T>\
- typename result<N, T const>::type\
- operator()( BOOST_PP_ENUM_PARAMS(N, T const &_) )const \
- { \
- typedef typename result<N, T const>::type result_;\
- MACRO1( N, T const )\
- } \
-/**/
-
-BOOST_PP_REPEAT_FROM_TO(
- 1,
- BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY),
- MACRO2,
- ~
-)
-#undef MACRO1
-#undef MACRO2
-
- protected:
- pars_cont_type pars_cont;
-
- };
-
-}// put_compose_csv_aux
-namespace adaptor{
-namespace{
- put_compose_csv_aux::composer<> const _csv_put
- = put_compose_csv_aux::composer<>();
-}
-}// adaptor
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/csv/forward_seq_arg.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/csv/forward_seq_arg.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/csv/forward_seq_arg.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,67 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_FORWARD_SEQ_ARG_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_FORWARD_SEQ_ARG_ER_2010_HPP
-#include <algorithm>
-#include <boost/range/begin.hpp>
-#include <boost/range/end.hpp>
-#include <boost/assign/v2/put/compose/csv/held.hpp>
-#include <boost/assign/v2/ref/wrapper/framework.hpp>
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_compose_csv_aux{
-
- template<typename O>
- class arg_forwarder : ref::wrapper<ref::assign_tag::copy, O const>
- {
- typedef ref::assign_tag::copy assign_tag_;
- typedef ref::wrapper<assign_tag_, O const> super_t;
-
- public:
-
- arg_forwarder(){}
- arg_forwarder(O const& object)
- :super_t( object ){}
-
- template<typename T>
- void operator()(T& t)const
- {
- this->unwrap()( t );
- }
- template<typename T>
- void operator()(T const& t)const
- {
- this->unwrap()( t );
- }
-
- };
-
- template<typename O, typename Pars, std::size_t N, typename U>
- void forward_seq_arg(O const& object, held<Pars, N, U> const& h)
- {
- typedef arg_forwarder<O> forwarder_;
- forwarder_ f( object );
- std::for_each(
- boost::begin( h.sequence_arg() ),
- boost::end( h.sequence_arg() ),
- f
- );
-
- }
-
-}// put_compose_csv_aux
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/csv/held.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/csv/held.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/csv/held.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,64 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_CSV_HELD_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_CSV_HELD_ER_2010_HPP
-#include <boost/mpl/apply.hpp>
-#include <boost/assign/v2/ref/anon/csv/assign_copy.hpp>
-#include <boost/assign/v2/ref/fusion/assign_copy.hpp>
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-
-namespace boost{
- struct use_default;
-namespace assign{
-namespace v2{
-namespace put_compose_csv_aux{
-
- template<typename Pars, std::size_t N, typename U>
- struct held
- {
- typedef boost::use_default tag2_;
- typedef v2::ref::assign_copy::nth_result_of::fusion<tag2_> meta1_;
- typedef typename boost::mpl::apply1<meta1_, Pars>::type pars_cont_type;
- typedef typename v2::ref::assign_copy::nth_result_of::csv_anon<
- N,
- U
- >::type seq_arg_cont_type;
-
- held(){}
- held(pars_cont_type const& p, seq_arg_cont_type const& s)
- : pars_cont( p ), seq_arg( s ){}
-
- pars_cont_type const& parameters()const
- {
- return this->pars_cont;
- }
-
- seq_arg_cont_type const& sequence_arg()const
- {
- return this->seq_arg;
- }
- seq_arg_cont_type& sequence_arg()
- {
- return this->seq_arg;
- }
-
- protected:
- pars_cont_type pars_cont;
- seq_arg_cont_type seq_arg;
-
- };
-
-}// put_compose_csv_aux
-}// v2
-}// assign
-}// boost
-
-#endif
-
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/csv/sub.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/csv/sub.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/csv/sub.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,39 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_CSV_SUB_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_CSV_SUB_ER_2010_HPP
-#include <boost/assign/v2/put/compose/common/forward_parameter.hpp>
-#include <boost/assign/v2/put/compose/csv/forward_seq_arg.hpp>
-#include <boost/assign/v2/put/compose/csv/held.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_compose_csv_aux{
-
- template<typename V, typename Pars, std::size_t N, typename U>
- V& operator|(
- V& v,
- put_compose_csv_aux::held<Pars, N, U> const& c
- )
- {
- put_compose_csv_aux::forward_seq_arg(
- put_compose_aux::forward_parameter<Pars>( put( v ), c ),
- c
- );
- return v;
- }
-
-}// put_compose_csv_aux
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/functor.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/functor.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/functor.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,18 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_FUNCTOR_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_FUNCTOR_ER_2010_HPP
-
-#include <boost/assign/v2/put/compose/functor/composer.hpp>
-#include <boost/assign/v2/put/compose/functor/forward_args.hpp>
-#include <boost/assign/v2/put/compose/functor/forward_seq_args.hpp>
-#include <boost/assign/v2/put/compose/functor/sub.hpp>
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/functor/composer.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/functor/composer.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/functor/composer.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,268 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_COMPOSER_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_COMPOSER_ER_2010_HPP
-#include <boost/mpl/apply.hpp>
-#include <boost/mpl/lambda.hpp>
-#include <boost/mpl/placeholders.hpp>
-#include <boost/mpl/push_back.hpp>
-#include <boost/mpl/transform.hpp>
-#include <boost/mpl/size.hpp>
-#include <boost/mpl/vector/vector0.hpp>
-#include <boost/mpl/vector/vector10.hpp>
-#include <boost/mpl/vector.hpp>
-
-#include <boost/config.hpp>
-#include <boost/utility/enable_if.hpp>
-
-#include <boost/assign/v2/ref/fusion/assign_copy.hpp>
-#include <boost/assign/v2/ref/fusion_matrix/container.hpp>
-#include <boost/assign/v2/ref/fusion_matrix/nth_result_of.hpp>
-#include <boost/assign/v2/put/compose/tag.hpp>
-
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-#include <boost/assign/v2/ref/wrapper/cpp0x.hpp>
-#include <boost/assign/v2/temporary/variadic_vector.hpp>
-#else
-#include <boost/preprocessor/arithmetic/inc.hpp>
-#include <boost/preprocessor/cat.hpp>
-#include <boost/preprocessor/repetition/enum_params.hpp>
-#include <boost/preprocessor/repetition/enum_binary_params.hpp>
-#include <boost/preprocessor/repetition/repeat.hpp>
-#include <boost/preprocessor/repetition/repeat_from_to.hpp>
-#include <boost/preprocessor/seq/for_each_product.hpp>
-#include <boost/preprocessor/seq/first_n.hpp>
-#include <boost/assign/v2/detail/functor/crtp_unary_and_up.hpp>
-#include <boost/assign/v2/detail/config/limit_arity.hpp>
-#include <boost/assign/v2/detail/pp/args.hpp>
-#include <boost/assign/v2/detail/pp/params.hpp>
-#include <boost/assign/v2/detail/pp/seq.hpp>
-
-#endif
-
-namespace boost{
- struct use_default;
-namespace assign{
-namespace v2{
-namespace put_compose_aux{
-
- template<
- typename Pars = boost::mpl::vector0<>,
- typename SeqArgs = boost::mpl::vector0<>,
- bool enable_pars = (boost::mpl::size<SeqArgs>::value == 0)
- >
- class composer;
-
- template<typename Pars, typename SeqArgs, bool enable_pars>
- struct composer_result
- {
-
- template<typename Args>
- struct apply
- {
- typedef typename boost::mpl::push_back<
- SeqArgs,
- Args
- >::type new_;
- typedef composer<Pars, new_> type;
- };
-
- };
-
-
- template<typename Pars, typename SeqArgs, bool enable_pars>
- class composer
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-//do nothing
-#else
- : public functor_aux::crtp_unary_and_up<
- composer<Pars, SeqArgs, enable_pars>,
- composer_result<Pars, SeqArgs, enable_pars>
- >
-#endif
- {
- typedef boost::use_default tag2_;
- typedef v2::ref::assign_copy::nth_result_of::fusion<tag2_> meta1_;
- typedef ref::assign_tag::copy tag1_;
- typedef ref::nth_result_of::fusion_matrix<
- tag1_,
- boost::use_default
- > meta2_;
-
- public:
-
- BOOST_STATIC_CONSTANT(
- std::size_t,
- static_parameters_size = boost::mpl::size<Pars>::value
- );
-
- BOOST_STATIC_CONSTANT(
- std::size_t,
- static_sequence_args_size = boost::mpl::size<SeqArgs>::value
- );
-
- typedef typename boost::mpl::apply1<
- meta1_,
- Pars
- >::type pars_cont_type;
- typedef typename boost::mpl::apply1<
- meta2_,
- SeqArgs
- >::type seq_args_cont_type;
-
- composer(){}
- composer(
- pars_cont_type const& p,
- seq_args_cont_type const& s
- )
- : pars_cont( p ),
- seq_args_cont( s ){}
-
- // operator%
-
- template<typename T>
- struct modulo_result
- {
- typedef typename boost::mpl::push_back<
- Pars,
- T const
- >::type new_;
- typedef composer<new_, SeqArgs> type;
- };
-
- template<typename T>
- typename boost::lazy_enable_if_c<
- enable_pars,
- modulo_result<T>
- >::type
- operator%(T const& t)const
- {
- typedef typename modulo_result<T>::type result_;
- return result_( this->pars_cont( t ), this->seq_args_cont );
- }
-
- // operator()
-
- template<typename VecArg>
- struct result : boost::mpl::apply1<
- composer_result<Pars, SeqArgs, enable_pars>,
- VecArg
- >{};
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-
- protected:
-
- template<typename ...RArgs>
- struct cpp0x_traits
- {
- typedef typename boost::mpl::detail::variadic_vector<
- RArgs...
- >::type refs_;
- typedef typename boost::mpl::transform<
- refs_,
- ref::wrapper_param<boost::mpl::_>
- >::type wrapper_params_;
- typedef typename result<wrapper_params_>::type result_type;
- };
-
- public:
-
- template<typename ...RArgs>
- typename cpp0x_traits<RArgs...>::result_type
- operator()(RArgs&&...args )const
- {
- typedef typename cpp0x_traits<RArgs...>::result_type result_;
- return result_(
- this->pars_cont,
- this->seq_args_cont(
- std::forward<RArgs>( args )...
- )
- );
- }
-
-#else
- protected:
-
- typedef functor_aux::crtp_unary_and_up<
- composer,
- composer_result<Pars, SeqArgs, enable_pars>
- > super_t;
-
- public:
-
- typename result<
- boost::mpl::vector0<>
- >::type
- operator()()const
- {
- typedef boost::mpl::vector0<> args_;
- typedef typename result<args_>::type result_;
- return result_( this->pars_cont, this->seq_args_cont() );
- }
-
- using super_t::operator();
-
-#define MACRO1( z, n, data ) \
- ( BOOST_PP_CAT(_,n) ) \
-/**/
-
-#define MACRO2(z, N1, data) \
- template<BOOST_PP_ENUM_PARAMS(N1, typename U)> \
- typename result< \
- boost::mpl::vector<BOOST_PP_ENUM_PARAMS(N1, U)> \
- >::type \
- impl( BOOST_PP_ENUM_BINARY_PARAMS(N1, U, &_) )const{ \
- typedef boost::mpl::vector<BOOST_PP_ENUM_PARAMS(N1, U)> args_; \
- typedef typename result<args_>::type result_; \
- return result_( \
- this->pars_cont, \
- this->seq_args_cont( BOOST_PP_ENUM_PARAMS(N1, _) ) \
- ); \
- } \
-/**/
-BOOST_PP_REPEAT_FROM_TO(
- 1,
- BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_ARITY),
- MACRO2,
- ~
-)
-#undef MACRO1
-#undef MACRO2
-
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
- pars_cont_type const& parameters()const{
- return this->pars_cont;
- }
- seq_args_cont_type const& sequence_args()const{
- return this->seq_args_cont;
- }
-
- protected:
-
- pars_cont_type pars_cont;
- seq_args_cont_type seq_args_cont;
-
- };
-
-}// put_compose_aux
-namespace adaptor{
-namespace{
- put_compose_aux::composer<> const _put = put_compose_aux::composer<>();
-}
-}// adaptor
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/functor/forward_args.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/functor/forward_args.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/functor/forward_args.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,225 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_FORWARD_ARGS_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_FORWARD_ARGS_ER_2010_HPP
-#include <cstddef> // std::size_t
-#include <boost/mpl/int.hpp>
-
-#include <boost/assign/v2/ref/fusion_matrix/container.hpp>
-#include <boost/assign/v2/ref/wrapper/framework.hpp>
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-// TODO eventually replace by mpl/variadic_template/package_range_c.hpp>
-#include <boost/assign/v2/temporary/variadic_args_to_indices.hpp>
-#else
-#include <boost/preprocessor/arithmetic/inc.hpp>
-#include <boost/preprocessor/control/expr_if.hpp>
-#include <boost/preprocessor/punctuation/comma_if.hpp>
-#include <boost/preprocessor/repetition/enum_params.hpp>
-#include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
-#include <boost/preprocessor/repetition/enum_trailing_params.hpp>
-#include <boost/preprocessor/repetition/repeat.hpp>
-#include <boost/mpl/aux_/na.hpp>
-#include <boost/assign/v2/detail/config/limit_arity.hpp>
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_compose_aux{
-
- template<
- std::size_t N, typename L,typename Tag1, typename Tag2,
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- typename... Args
-#else
- BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
- BOOST_ASSIGN_V2_LIMIT_ARITY,
- typename T,
- boost::mpl::na
- )
-#endif
- >
- class args : ref::wrapper<
- ref::assign_tag::copy,
- ref::fusion_matrix_aux::container<N, L, Tag1, Tag2,
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- Args...
-#else
- BOOST_PP_ENUM_PARAMS(BOOST_ASSIGN_V2_LIMIT_ARITY, T)
-#endif
- > const
- >
- {
- typedef ref::fusion_matrix_aux::container<N, L, Tag1, Tag2,
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- Args...
-#else
- BOOST_PP_ENUM_PARAMS(BOOST_ASSIGN_V2_LIMIT_ARITY, T)
-#endif
- > value_;
- typedef ref::assign_tag::copy assign_tag_;
- typedef ref::wrapper<assign_tag_, value_ const> super_t;
-
- public:
- typedef value_ value_type;
-
- args(){};
-
- args(value_ const& v) : super_t( v ){}
-
- value_ const& value()const{ return this->unwrap(); }
-
- };
-
- template<
- std::size_t N, typename L,typename Tag1, typename Tag2,
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- typename...Args
-#else
- BOOST_PP_ENUM_PARAMS(BOOST_ASSIGN_V2_LIMIT_ARITY, typename T)
-#endif
- >
- args<N, L, Tag1, Tag2,
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- Args...
-#else
- BOOST_PP_ENUM_PARAMS(BOOST_ASSIGN_V2_LIMIT_ARITY, T)
-#endif
- >
- make_args(
- ref::fusion_matrix_aux::container<N,L,Tag1, Tag2,
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- Args...
-#else
- BOOST_PP_ENUM_PARAMS(BOOST_ASSIGN_V2_LIMIT_ARITY, T)
-#endif
- > const& v
- ){
- typedef args<N,L,Tag1, Tag2,
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- Args...
-#else
- BOOST_PP_ENUM_PARAMS(BOOST_ASSIGN_V2_LIMIT_ARITY, T)
-#endif
- > result_;
- return result_( v );
- }
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-
- template<typename Input, typename I>
- struct forward_args_helper
- {
-
- typedef Input input_;
- typedef typename input_::value_type value_;
- template<I Value>
- struct elem
- : value_::template static_elem_result<Value>{};
-
- template<I Value>
- static typename elem<Value>::type
- fetch(Input const& input)
- {
- typedef boost::mpl::int_<Value> int_;
- return input.value().static_elem( int_() );
- };
-
- template<typename O,typename V, V... Values>
- static O const& forward(
- O const& object,
- Input const& input,
- ::boost::mpl::er2010::indices<V, Values...>
- )
- {
- return object(
- fetch<Values>( input )...
- );
- }
-
- };
-
- template<
- typename O,
- std::size_t N, typename L,typename Tag1, typename Tag2,
- typename...Args
- >
- O const&
- forward_args(
- O const& object,
- put_compose_aux::args<N, L, Tag1, Tag2, Args...> const& input
- )
- {
- typedef put_compose_aux::args<N, L, Tag1, Tag2, Args...> input_;
-
- typedef std::size_t int_;
- typedef typename ::boost::mpl::er2010::args_to_indices<
- int_,
- Args...
- >::type indices_;
- typedef forward_args_helper<input_, int_> caller_;
- return caller_::forward(
- object,
- input,
- indices_()
- );
- }
-
-#else
-
-#define MACRO1(z, n, data) \
- BOOST_PP_COMMA_IF(n)\
- input.value().static_elem(\
- boost::mpl::int_<n>()\
- )\
-/**/
-
-#define MACRO2(z, K, data)\
- template<\
- typename O,\
- std::size_t N, typename L,typename Tag1, typename Tag2\
- BOOST_PP_ENUM_TRAILING_PARAMS(K, typename T)\
- >\
- O const&\
- forward_args(\
- O const& object,\
- put_compose_aux::args<N, L, Tag1, Tag2 \
- BOOST_PP_ENUM_TRAILING_PARAMS(K, T)\
- > const& input\
- )\
- {\
- return object(\
- BOOST_PP_REPEAT(K, MACRO1, ~)\
- );\
- }\
-/**/
-
-
-BOOST_PP_REPEAT(
- BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_ARITY),
- MACRO2,
- ~
-)
-
-#undef MACRO1
-#undef MACRO2
-
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
-}// put_compose_aux
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/functor/forward_seq_args.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/functor/forward_seq_args.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/functor/forward_seq_args.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,63 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_FORWARD_SEQ_ARGS_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_FORWARD_SEQ_ARGS_ER_2010_HPP
-#include <boost/mpl/int.hpp>
-#include <boost/mpl/size.hpp>
-#include <boost/assign/v2/put/compose/functor/forward_args.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_compose_aux{
-
- template<std::size_t I, std::size_t N, bool exit = (I == N)>
- struct forward_seq_args_caller
- {
-
- template<typename T,typename H>
- static void call(T const& object, H const& h)
- {
- typedef boost::mpl::int_<I> index_;
- forward_args(
- object,
- put_compose_aux::make_args(
- h.sequence_args().static_row( index_() )
- )
- );
- typedef forward_seq_args_caller<I+1, N> next_;
- next_::call( object, h );
- }
-
- };
-
- template<std::size_t I, std::size_t N>
- struct forward_seq_args_caller<I, N, true>
- {
- template<typename T, typename H>
- static void call(T const& object, H const& h){}
- };
-
- template<typename T, typename H>
- void forward_seq_args(T const& object, H const& h)
- {
- typedef put_compose_aux::forward_seq_args_caller<
- 0,
- H::static_sequence_args_size
- > caller_;
- caller_::call( object, h );
- }
-
-}// put_compose_aux
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/functor/sub.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/functor/sub.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/functor/sub.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,44 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_SUB_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_SUB_ER_2010_HPP
-#include <boost/assign/v2/put/sub/make.hpp>
-#include <boost/assign/v2/put/generic.hpp>
-#include <boost/assign/v2/put/compose/common/forward_parameter.hpp>
-#include <boost/assign/v2/put/compose/functor/composer.hpp>
-#include <boost/assign/v2/put/compose/functor/forward_seq_args.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_compose_aux{
-
- template<typename V, typename Pars, typename SeqArgs, bool enable_pars>
- V& operator|(
- V& v,
- put_compose_aux::composer<Pars, SeqArgs, enable_pars> const& c
- )
- {
- forward_seq_args(
- put_compose_aux::forward_parameter<Pars>(
- put( v ),
- c
- ),
- c
- );
- return v;
- }
-
-}// put_compose_aux
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/compose/tag.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/compose/tag.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/compose/tag.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,25 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_COMPOSE_TAG_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_COMPOSE_TAG_ER_2010_HPP
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_compose_aux{
-
- struct compose_tag{};
-
-}// put_compose_aux
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/put/generic/concept_sub.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/generic/concept_sub.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/generic/concept_sub.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -64,7 +64,7 @@
};
- template<typename V, typename F, typename Tag,typename X>
+ template<typename V, typename F, typename Tag, typename X>
class Post : Pre3<V, F, Tag, X>
{
Modified: sandbox/statistics/support/boost/assign/v2/put/generic/crtp.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/generic/crtp.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/generic/crtp.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -69,17 +69,16 @@
// then models concept_sub::Post
//
// Usually, f is passed to the crtp. U = V& or V const& depending on need.
- // Traits are deprecated but a use may be find in the future.
- template<typename V,typename F, typename Tag, typename D, typename Traits>
+ template<typename V,typename F, typename Tag, typename D>
class crtp :
public put_base,
- public put_aux::expose_fun<F> // protect + friend?
- , public put_aux::expose_modifier<Tag> // protect + friend?
+ public put_aux::expose_fun<F>
+ , public put_aux::expose_modifier<Tag>
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
//do nothing
#else
, public functor_aux::crtp_unary_and_up<
- crtp<V, F, Tag, D, Traits>,
+ crtp<V, F, Tag, D>,
boost::mpl::always< D const& >
>
#endif
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -10,12 +10,8 @@
#ifndef BOOST_ASSIGN_V2_PUT_MODIFIER_ER_2010_HPP
#define BOOST_ASSIGN_V2_PUT_MODIFIER_ER_2010_HPP
-#include <boost/assign/v2/put/modifier/at_next.hpp>
-#include <boost/assign/v2/put/modifier/deduce.hpp>
-#include <boost/assign/v2/put/modifier/insert.hpp>
-#include <boost/assign/v2/put/modifier/push.hpp>
-#include <boost/assign/v2/put/modifier/push_back.hpp>
-#include <boost/assign/v2/put/modifier/push_front.hpp>
#include <boost/assign/v2/put/modifier/ext.hpp>
+#include <boost/assign/v2/put/modifier/std.hpp>
+#include <boost/assign/v2/put/modifier/deduce.hpp>
#endif
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/at_next.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/at_next.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/at_next.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,57 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_MODIFIER_AT_NEXT_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_MODIFIER_AT_NEXT_ER_2010_HPP
-#include <boost/accumulators/framework/accumulator_base.hpp>
-#include <boost/assign/v2/put/modifier/def.hpp>
-#include <boost/assign/v2/put/generic/new_modifier.hpp>
-#include <boost/assign/v2/detail/type_traits/value.hpp>
-#include <boost/assign/v2/detail/pp/forward.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace modifier_tag{ struct at_next{}; }
-namespace put_aux{
-
- template<>
- struct modifier<v2::modifier_tag::at_next>
- {
-
- modifier():i( 0 ){};
- modifier( boost::accumulators::dont_care ):i( 0 ){}
-
- template<typename V,typename T>
- void impl(
- V& v,
- BOOST_ASSIGN_V2_forward_param(T, t)
- )const
- {
- v.at( i++ ) = BOOST_ASSIGN_V2_forward_arg(T, t);
- }
-
- // TODO check
- template<typename V,typename T>
- void impl(V& v, T* t)const{ v.replace( i++ , t); }
-
- private:
- mutable std::size_t i;
- };
-
-}// assign_aux
-
- put_aux::set_modifier<modifier_tag::at_next> const
- _at_next = ( _modifier = modifier_tag::at_next() );
-
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/deduce.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/deduce.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/deduce.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -10,8 +10,9 @@
#ifndef BOOST_ASSIGN_V2_PUT_MODIFIER_DEDUCE_ER_2010_HPP
#define BOOST_ASSIGN_V2_PUT_MODIFIER_DEDUCE_ER_2010_HPP
#include <boost/mpl/eval_if.hpp>
-#include <boost/type_traits/is_same.hpp>
+#include <boost/mpl/assert.hpp>
#include <boost/mpl/identity.hpp>
+#include <boost/type_traits/is_same.hpp>
#include <boost/assign/v2/detail/mpl/switch.hpp>
@@ -27,7 +28,8 @@
struct deduce_put{};
}// switch_tag
namespace modifier_tag{
- struct at_next;
+ //struct at_next;
+ struct iterate;
struct insert;
struct push;
struct push_back;
@@ -44,7 +46,8 @@
template<>
struct case_<switch_tag::deduce_put,1> :
v2::mpl::wrap<
- v2::modifier_tag::at_next,
+// v2::modifier_tag::at_next,
+ v2::modifier_tag::iterate,
v2::container_type_traits::is_static_array
>{};
@@ -88,6 +91,14 @@
boost::mpl::identity<Option1>
>{};
+ // For testing purposes
+ template<typename C, typename X>
+ void check_deduce()
+ {
+ typedef typename put_aux::deduce_modifier<C>::type found_;
+ BOOST_MPL_ASSERT(( boost::is_same<found_, X> ));
+ }
+
}// put_aux
namespace{
const put_aux::kwd_deduce _deduce = put_aux::kwd_deduce();
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/ext.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/ext.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/ext.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -10,7 +10,8 @@
#ifndef BOOST_ASSIGN_V2_PUT_MODIFIER_EXT_ER_2010_HPP
#define BOOST_ASSIGN_V2_PUT_MODIFIER_EXT_ER_2010_HPP
-#include <boost/assign/v2/put/modifier/ext/incr_lookup.hpp>
+#include <boost/assign/v2/put/modifier/ext/iterate.hpp>
+#include <boost/assign/v2/put/modifier/ext/lookup.hpp>
#include <boost/assign/v2/put/modifier/ext/repeat.hpp>
#endif
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 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,86 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_MODIFIER_INCR_LOOKUP_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_MODIFIER_INCR_LOOKUP_ER_2010_HPP
-#include <boost/assign/v2/put/modifier/def.hpp>
-#include <boost/assign/v2/detail/functor/identity.hpp>
-#include <boost/assign/v2/detail/pp/forward.hpp>
-#include <boost/assign/v2/put/generic/parameter.hpp>
-#include <boost/assign/v2/put/generic/result_of_modulo.hpp>
-#include <boost/assign/v2/put/modifier/ext/xxx.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace modifier_tag{
-
- struct incr_lookup{};
-
-}// modifier_tag
-namespace put_parameter{
-
- template<typename OldFun,typename OldTag>
- struct incr_lookup : put_parameter::pair<
- functor_aux::identity,
- modifier_tag::incr_lookup
- >{};
-
-}// put_parameter
-namespace put_aux{
-
- template<>
- struct modifier<modifier_tag::incr_lookup>
- {
- typedef std::size_t size_type;
- modifier():n( 0 ){}
- modifier(size_type const& m):n( m ){};
-
- template<typename V,typename T>
- void impl(V& v, BOOST_ASSIGN_V2_forward_param(T, t) )const
- {
- v[ BOOST_ASSIGN_V2_forward_arg(T, t) ] += this->n;
- }
-
- // TODO T*, but is there a use for it?
-
- private:
- size_type n;
- };
-
- struct incr_lookup
- {
-
- typedef std::size_t size_type;
-
- incr_lookup() : n( 1 ){}
- incr_lookup(size_type const& m) : n( m ){}
-
- incr_lookup
- operator=(size_type const& m)const{
- typedef incr_lookup result_;
- return result_( m );
- }
-
- size_type const& get()const{ return this->n; }
-
- private:
-
- size_type n;
- };
-
-}// put_aux
-
-BOOST_ASSIGN_V2_PUT_MODIFIER_EXT_XXX(incr_lookup)
-
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
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 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -9,6 +9,7 @@
//////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_ASSIGN_V2_PUT_MODIFIER_EXT_REPEAT_ER_2010_HPP
#define BOOST_ASSIGN_V2_PUT_MODIFIER_EXT_REPEAT_ER_2010_HPP
+#include <boost/mpl/aux_/na.hpp>
#include <boost/assign/v2/detail/pp/forward.hpp>
#include <boost/assign/v2/put/modifier/def.hpp>
#include <boost/assign/v2/put/generic/parameter.hpp>
@@ -18,23 +19,27 @@
namespace assign{
namespace v2{
namespace modifier_tag{
-
+
template<typename OldTag> struct repeat{};
-
-}// put_aux
+
+}// modifier_tag
namespace put_parameter{
- template<typename OldFun,typename OldTag>
- struct repeat : put_parameter::pair<
- OldFun,
- modifier_tag::repeat<OldTag>
- >{ };
+ template<typename Arg>
+ struct repeat{
+
+ template<typename OldFun, typename OldTag>
+ struct apply : put_parameter::pair<
+ OldFun,
+ modifier_tag::repeat<OldTag>
+ >{};
+ };
}// put_parameter
namespace put_aux{
template<typename Tag>
- class modifier<modifier_tag::repeat<Tag> >
+ class modifier<modifier_tag::repeat<Tag> >
{
typedef modifier<Tag> inner_;
@@ -43,7 +48,7 @@
typedef std::size_t size_type;
modifier() : n( 0 ){}
- explicit modifier( size_type const& n_ )
+ explicit modifier( size_type const& n_ )
: n( n_ )
{
}
@@ -77,24 +82,18 @@
size_type n;
};
- class repeat
+ template<typename Arg = boost::mpl::na>
+ class repeat
{
public:
typedef std::size_t size_type;
- repeat(){}
- repeat( size_type const& n_)
+ repeat( size_type const& n_)
: n( n_ )
{}
- repeat operator=( size_type const& n_)const
- {
- typedef repeat result_;
- return result_( n_ );
- }
-
size_type const& get()const{ return this->n; }
protected:
@@ -102,6 +101,23 @@
};
+ class repeat_keyword
+ {
+
+ public:
+
+ typedef std::size_t size_type;
+
+ repeat_keyword(){}
+
+ repeat<> operator=( size_type const& n_)const
+ {
+ typedef repeat<> result_;
+ return result_( n_ );
+ }
+
+ };
+
}// put_aux
BOOST_ASSIGN_V2_PUT_MODIFIER_EXT_XXX(repeat)
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/ext/result_of_modulo.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/ext/result_of_modulo.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/ext/result_of_modulo.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -46,41 +46,41 @@
typedef typename boost::mpl::eval_if<
is_same_fun,
- boost::mpl::apply1<
- v2::result_of_modulo::new_modifier<T>,
- tag
- >,
- boost::mpl::apply2<
- v2::result_of_modulo::new_fun_modifier<T>,
- fun_,
- tag
- >
+ boost::mpl::apply1<
+ v2::result_of_modulo::new_modifier<T>,
+ tag
+ >,
+ boost::mpl::apply2<
+ v2::result_of_modulo::new_fun_modifier<T>,
+ fun_,
+ tag
+ >
>::type type;
typedef put_aux::modifier<tag> m_;
- template<typename V, typename F>
- static type call(V& v, F const& f, m_ const& m)
- {
- return type( v, f, m );
- }
+ template<typename V, typename F>
+ static type call(V& v, F const& f, m_ const& m)
+ {
+ return type( v, f, m );
+ }
static fun_ make_fun(const T& t, boost::mpl::false_)
- {
- return fun_();
+ {
+ return fun_();
}
static fun_ make_fun(const T& t, boost::mpl::true_)
- {
- return t.fun;
+ {
+ return t.fun;
}
- template<typename P>
- static type call(const T& t, P const& p)
+ template<typename P>
+ static type call(const T& t, P const& p)
{
typedef put_concept::Parameter<m_,P> concept_;
- BOOST_CONCEPT_ASSERT(( concept_ ));
- return call(
- t.unwrap(),
- make_fun( t, is_same_fun() ),
- m_( p.get() )
+ BOOST_CONCEPT_ASSERT(( concept_ ));
+ return call(
+ t.unwrap(),
+ make_fun( t, is_same_fun() ),
+ m_( p.get() )
);
}
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/ext/xxx.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/ext/xxx.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/ext/xxx.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -20,36 +20,35 @@
#define BOOST_ASSIGN_V2_PUT_MODIFIER_EXT_XXX(Param)\
namespace result_of_modulo{\
\
- template<typename T>\
+ template<typename T, typename Arg>\
struct Param\
: boost::mpl::apply1<\
- result_of_modulo::ext_generic<T>\
- , boost::mpl::quote2<\
- put_parameter::Param\
- >\
+ result_of_modulo::ext_generic<T>\
+ , put_parameter::Param<Arg>\
>\
{};\
\
}\
namespace put_aux{\
\
- template<typename T>\
+ template<typename T,typename Arg>\
typename boost::lazy_enable_if<\
boost::is_base_of<put_aux::put_base, T>,\
- result_of_modulo::Param<T>\
+ result_of_modulo::Param<T, Arg>\
>::type\
operator%(\
T const& t,\
- put_aux::Param const& p\
+ put_aux::Param<Arg> const& p\
)\
{\
- typedef result_of_modulo::Param<T> caller_;\
+ typedef result_of_modulo::Param<T, Arg> caller_;\
return caller_::call( t, p );\
}\
\
}\
namespace{\
- put_aux::Param const BOOST_PP_CAT(_,Param) = put_aux::Param();\
+ put_aux::BOOST_PP_CAT(Param,_keyword) const BOOST_PP_CAT(_,Param)\
+ = put_aux::BOOST_PP_CAT(Param,_keyword)();\
}\
/**/
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/insert.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/insert.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/insert.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,16 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_MODIFIER_INSERT_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_MODIFIER_INSERT_ER_2010_HPP
-#include <boost/assign/v2/put/modifier/xxx.hpp>
-
-BOOST_ASSIGN_V2_PUT_MODIFIER_XXX(insert)
-
-#endif
\ No newline at end of file
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/push.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/push.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/push.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,16 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_MODIFIER_PUSH_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_MODIFIER_PUSH_ER_2010_HPP
-#include <boost/assign/v2/put/modifier/xxx.hpp>
-
-BOOST_ASSIGN_V2_PUT_MODIFIER_XXX(push)
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/push_back.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/push_back.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/push_back.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,16 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_MODIFIER_PUSH_BACK_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_MODIFIER_PUSH_BACK_ER_2010_HPP
-#include <boost/assign/v2/put/modifier/xxx.hpp>
-
-BOOST_ASSIGN_V2_PUT_MODIFIER_XXX(push_back)
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/push_front.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/push_front.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/push_front.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,16 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_MODIFIER_PUSH_FRONT_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_MODIFIER_PUSH_FRONT_ER_2010_HPP
-#include <boost/assign/v2/put/modifier/xxx.hpp>
-
-BOOST_ASSIGN_V2_PUT_MODIFIER_XXX(push_front)
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/put/modifier/xxx.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/modifier/xxx.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/modifier/xxx.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,59 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_MODIFIER_XXX
-
-#include <boost/preprocessor/cat.hpp>
-#include <boost/accumulators/framework/accumulator_base.hpp>
-
-#include <boost/assign/v2/detail/pp/forward.hpp>
-#include <boost/assign/v2/put/modifier/def.hpp>
-#include <boost/assign/v2/put/generic/new_modifier.hpp>
-
-#define BOOST_ASSIGN_V2_PUT_MODIFIER_XXX(FUN)\
-namespace boost{\
-namespace assign{\
-namespace v2{\
-namespace modifier_tag{ struct FUN{}; }\
-namespace put_aux{\
-\
- template<>\
- struct modifier<v2::modifier_tag::FUN>\
- {\
-\
- modifier(){}\
- modifier( boost::accumulators::dont_care ){}\
-\
- template<typename V, typename T>\
- void impl(V& v, BOOST_ASSIGN_V2_forward_param(T, t) )const{\
- v.FUN(\
- BOOST_ASSIGN_V2_forward_arg(T, t)\
- );\
- }\
-\
- template<typename V, typename T>\
- void impl(V& v, T* t)const{ v.FUN( t ); }\
-\
- };\
-\
-}\
-namespace{\
-\
- put_aux::set_modifier<v2::modifier_tag::FUN> const\
- BOOST_PP_CAT(_,FUN) = ( \
- _modifier = v2::modifier_tag::FUN() \
- );\
-\
-}\
-}\
-}\
-}\
-/**/
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/put/range/adaptor.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/range/adaptor.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/range/adaptor.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,69 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_RANGE_ADAPTOR_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_RANGE_ADAPTOR_ER_2010_HPP
-//#include <boost/assign/v2/put/range/modifier.hpp> // TODO remove
-#include <boost/range/algorithm/for_each.hpp>
-#include <boost/assign/v2/put/sub/make.hpp>
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_range_aux
-{
- template<typename From>
- class adaptor1 : ref::wrapper<ref::assign_tag::copy, From const>
- {
- typedef ref::wrapper<ref::assign_tag::copy, From const> super_t;
-
- public:
-
- adaptor1(From const& from):super_t(from){}
-
- From const& from()const{ return this->unwrap(); }
-
- private:
- adaptor1();
- };
-
- struct adaptor2
- {
- adaptor2(){}
- template<typename From>
- adaptor1<From> operator()(const From& from)const
- {
- typedef adaptor1<From> result_;
- return result_( from );
- }
- };
-
- template<typename To,typename From>
- To& operator|(To& to, put_range_aux::adaptor1<From> const& h)
- {
- // TODO remove
- // typedef typename put_range_aux::deduce_operation<To>::type tag_;
- // put_range_aux::put_range( tag_(), h.from(), to );
-
- ::boost::for_each( h.from(), put( to ) );
- return to;
- }
-
-}// put_range_aux
-namespace adaptor
-{
- put_range_aux::adaptor2 const _put_range = put_range_aux::adaptor2();
-
-}// adaptor
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/put/range/convert.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/range/convert.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/range/convert.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,80 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_RANGE_CONVERT_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_RANGE_CONVERT_ER_2010_HPP
-#include <boost/assign/v2/put/range/adaptor.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_convert_aux
-{
- template<typename To>
- struct adaptor
- {
- adaptor(){}
- };
-
- template<typename From,typename To>
- To operator|(From& from, put_convert_aux::adaptor<To> const& dummy)
- {
- To to;
- return to | v2::adaptor::_put_range( from );
- }
-
-}// convert_aux
-namespace adaptor{
-
- template<typename To>
- put_convert_aux::adaptor<To> put_convert()
- {
- return put_convert_aux::adaptor<To>();
- }
-
-}// adaptor
-
-// TODO remove
-/*
- template<typename To,typename From>
- To convert(From const& from){
- return from | adaptor::put_convert<To>();
- }
-*/
-}// v2
-}// assign
-}// boost
-
-#endif
-
-// TODO remove
-// ------ CLASS MEMBER ---- //
-
-#ifndef BOOST_ASSIGN_V2_CONVERT_CONVERT_MF
-#define BOOST_ASSIGN_V2_CONVERT_CONVERT_MF \
- template<typename To> \
- To convert()const \
- { \
- namespace ns = boost::assign::v2; \
- return (*this) | ns::adaptor::put_convert<To>(); \
- } \
-/**/
-#endif
-
-#ifndef BOOST_ASSIGN_V2_CONVERT_OPERATOR_MF
-#define BOOST_ASSIGN_V2_CONVERT_OPERATOR_MF \
- template<typename To> \
- operator To ()const \
- { \
- namespace ns = boost::assign::v2; \
- return (*this) | ns::adaptor::put_convert<To>(); \
- } \
-/**/
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/put/sub.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/sub.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/sub.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -10,8 +10,7 @@
#ifndef BOOST_ASSIGN_V2_PUT_SUB_ER_2010_HPP
#define BOOST_ASSIGN_V2_PUT_SUB_ER_2010_HPP
-#include <boost/assign/v2/put/sub/make.hpp>
#include <boost/assign/v2/put/sub/csv.hpp>
+#include <boost/assign/v2/put/sub/functor.hpp>
-#endif
-
+#endif // BOOST_ASSIGN_V2_PUT_PIPE_CSV_ER_2010_HPP
Modified: sandbox/statistics/support/boost/assign/v2/put/sub/csv.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/sub/csv.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/sub/csv.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -12,7 +12,7 @@
#include <boost/assign/v2/ref/wrapper/framework.hpp>
#include <boost/assign/v2/ref/wrapper/copy.hpp>
#include <boost/assign/v2/detail/type_traits/container/value.hpp>
-#include <boost/assign/v2/put/sub/make.hpp>
+#include <boost/assign/v2/put/sub/functor.hpp>
#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
#include <utility>
@@ -55,8 +55,6 @@
void impl(R& r){}
template<typename R,typename... Args>
- //implicit conversion to value_type desired
- // TODO make sure it is achieved.
void impl(R& r, value_type const& t, Args&&...args)
{
r( t );
Modified: sandbox/statistics/support/boost/assign/v2/put/sub/make.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put/sub/make.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put/sub/make.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,136 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_SUB_MAKE_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_SUB_MAKE_ER_2010_HPP
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-#include <boost/assign/v2/put/generic/crtp.hpp>
-#include <boost/assign/v2/put/generic/result_of_modulo.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_aux{
-
- template<typename V,typename F, typename Tag> class sub;
-
-}// put_aux
-namespace result_of_modulo{
-
- template<typename V,typename F,typename Tag>
- struct new_fun<put_aux::sub<V,F,Tag> >
- {
-
- template<typename F1>
- struct apply{ typedef put_aux::sub<V,F1,Tag> type; };
-
- };
-
- template<typename V,typename F,typename Tag>
- struct new_modifier<put_aux::sub<V,F,Tag> >
- {
-
- template<typename NewTag>
- struct apply{ typedef put_aux::sub<V,F,NewTag> type; };
-
- };
-
-}//result_of_modulo
-namespace put_aux{
-
- template<typename V,typename F, typename Tag> class sub;
-
- template<typename V,typename F,typename Tag>
- struct sub_modifier_traits
- {};
-
- template<typename V,typename F, typename Tag>
- class sub
- : protected ref::wrapper< // must be the first base.
- ref::assign_tag::copy,
- V
- >,
- public put_aux::crtp<
- V,
- F,
- Tag,
- sub<V,F,Tag>,
- sub_modifier_traits<V,F,Tag>
- >
- {
-
- typedef put_aux::crtp<
- V,
- F,
- Tag,
- sub<V,F,Tag>,
- sub_modifier_traits<V,F,Tag>
- > super2_t;
-
- public:
-
- typedef typename super2_t::result_type result_type;
-
- protected:
-
- typedef put_aux::modifier<Tag> modifier_;
- typedef ref::assign_tag::copy assign_tag_;
- typedef ref::wrapper<assign_tag_,V> super1_t;
-
- public:
-
- sub(){}
- explicit sub( V& v ) : super1_t( v ) {}
- explicit sub( V& v, F const& f )
- : super1_t( v ), super2_t( f )
- {
- // This constructor is required by crtp
- // when Tag or F is modified.
- }
-
- explicit sub( V& v, F const& f, modifier_ const& m )
- : super1_t( v ), super2_t( f, m )
- {
- // This constructor is required by crtp
- // when Tag or F is modified.
- }
-
- V& unwrap()const{
- return static_cast<super1_t const&>(*this).unwrap();
- }
-
- };
-
-}// put_aux
-namespace result_of{
-
- template<typename V>
- struct put
- {
- typedef put_aux::crtp_traits<V> traits_;
- typedef typename traits_::functor_type f_;
- typedef typename traits_::modifier_tag modifier_tag_;
- typedef put_aux::sub<V,f_,modifier_tag_> type;
- };
-
-}// result_of
-
- template<typename V>
- typename result_of::put<V>::type
- put( V& v )
- {
- typedef typename result_of::put<V>::type result_;
- return result_( v );
- }
-
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,16 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_ANON_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_ANON_ER_2010_HPP
-
-#include <boost/assign/v2/ref/anon/functor.hpp>
-#include <boost/assign/v2/ref/anon/csv.hpp>
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/csv.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/csv.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/csv.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,24 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_CONTAINER_ANON_CSV_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_CONTAINER_ANON_CSV_ER_2010_HPP
-#include <boost/assign/v2/ref/anon/csv/nth_result_of.hpp>
-#include <boost/assign/v2/ref/anon/csv/make.hpp>
-#include <boost/assign/v2/ref/anon/csv/assign_copy.hpp>
-#include <boost/assign/v2/ref/anon/csv/assign_rebind.hpp>
-
-// TODO update or remove as needed
-#undef BOOST_ASSIGN_V2_REF_CSV_ARRAY_invoke
-#undef BOOST_ASSIGN_V2_REF_CSV_ARRAY_tpl
-#undef xxx_Tag1
-#undef BOOST_ASSIGN_V2_REF_CSV_ARRAY_iter
-#undef BOOST_ASSIGN_V2_REF_CSV_ARRAY_ASSIGN_XXX
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_copy.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_copy.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_copy.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,18 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_CONTAINER_ANON_CSV_ASSIGN_COPY_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_CONTAINER_ANON_CSV_ASSIGN_COPY_ER_2010_HPP
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-#include <boost/assign/v2/ref/anon/csv/assign_xxx.hpp>
-
-BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_1( assign_copy, assign_tag::copy )
-BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_2( assign_copy, assign_tag::copy )
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_rebind.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_rebind.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_rebind.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,28 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_CONTAINER_ANON_CSV_ASSIGN_REBIND_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_CONTAINER_ANON_CSV_ASSIGN_REBIND_ER_2010_HPP
-#include <boost/assign/v2/ref/wrapper/rebind.hpp>
-#include <boost/assign/v2/ref/anon/csv/assign_xxx.hpp>
-
-//#define xxx_Tag1 assign_tag::rebind
-//BOOST_ASSIGN_V2_REF_CSV_ARRAY_ASSIGN_XXX( assign_rebind )
-//#undef xxx_Tag1
-
-BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_1(
- assign_rebind,
- assign_tag::rebind
-)
-BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_2(
- assign_rebind,
- assign_tag::rebind
-)
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_xxx.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_xxx.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/csv/assign_xxx.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,135 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_ANON_CSV_ASSIGN_XXX_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_ER_2010_HPP
-
-#include <boost/assign/v2/ref/anon/csv/nth_result_of.hpp>
-#include <boost/assign/v2/ref/anon/csv/make.hpp>
-
-// Associate a nested namespace with an assign tag.
-// Usage:
-// BOOST_ASSIGN_V2_REF_CSV_ARRAY_ASSIGN_XXX_1( NS, TAG )
-// BOOST_ASSIGN_V2_REF_CSV_ARRAY_ASSIGN_XXX_2( NS, TAG )
-
-#ifndef BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_1
-#define BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_1( NS, TAG ) \
-namespace boost{ \
-namespace assign{ \
-namespace v2{ \
-namespace ref{ \
-namespace NS{ \
-namespace nth_result_of{ \
- template<std::size_t N, typename T> \
- struct csv_anon : ref::nth_result_of::csv_anon<N, TAG, T>{};\
-} \
- template<typename T>\
- typename ref::result_of::empty_csv_anon<TAG, T>::type\
- csv_anon( keyword_aux::nil )\
- {\
- typedef typename ref::result_of::empty_csv_anon<\
- TAG,\
- T\
- >::type result_;\
- return result_();\
- }\
-} \
-} \
-} \
-} \
-} \
-/**/
-
-#endif // BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_1
-
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-
-#ifndef BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M
-#define BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M(NS, TAG, U, Brgs)\
- template<typename T,typename...Args>\
- typename csv_anon_aux::result<TAG, U, Brgs...>::type\
- csv_anon( U& u, Brgs&...args )\
- {\
- typedef csv_anon_aux::result<TAG, U, Brgs...> caller_;\
- return caller_::call( u, args... );\
- }\
-/**/
-
-#endif // BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M
-
-#ifndef BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_2
-#define BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_2(NS, TAG)\
-namespace boost{ \
-namespace assign{ \
-namespace v2{ \
-namespace ref{ \
-namespace NS{ \
-BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M(NS, TAG, T , Args)\
-BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M(NS, TAG, T const , Args const)\
-} \
-} \
-} \
-} \
-} \
-/**/
-#endif // BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_2
-
-#else
-#include <boost/preprocessor/arithmetic/inc.hpp>
-#include <boost/preprocessor/repetition/repeat_from_to.hpp>
-#include <boost/assign/v2/detail/config/limit_csv_arity.hpp>
-
-#ifndef BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M1
-#define BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M1(n, U, TAG)\
- template<typename T>\
- typename nth_result_of::csv_anon<\
- n,\
- U\
- >::type\
- csv_anon( BOOST_PP_ENUM_PARAMS(n, U& _) )\
- {\
- return ref::csv_anon<TAG>( BOOST_PP_ENUM_PARAMS(n, _) );\
- }\
-/**/
-#endif
-
-#ifndef BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M2
-#define BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M2(z, n, TAG)\
-BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M1(n, T, TAG)\
-BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M1(n, T const, TAG)\
-/**/
-#endif
-
-#ifndef BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_2
-#define BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_2( NS, TAG ) \
-namespace boost{ \
-namespace assign{ \
-namespace v2{ \
-namespace ref{ \
-namespace NS{ \
-BOOST_PP_REPEAT_FROM_TO( \
- 1, \
- BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY), \
- BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_M2, \
- TAG \
-) \
-} \
-} \
-} \
-} \
-} \
-/**/
-
-#endif // BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_2
-
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
-#endif // BOOST_ASSIGN_V2_REF_ANON_CSV_ASSIGN_XXX_ER_2010_HPP
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/csv/make.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/csv/make.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/csv/make.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,148 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_CONTAINER_ANON_CSV_MAKE_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_CONTAINER_ANON_CSV_MAKE_ER_2010_HPP
-#include <boost/assign/v2/detail/keyword/nil.hpp>
-#include <boost/assign/v2/ref/static_array/alloc/fast_alloc.hpp>
-#include <boost/assign/v2/ref/anon/csv/nth_result_of.hpp>
-
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-#include <boost/config.hpp>
-#else
-#include <boost/preprocessor/cat.hpp>
-#include <boost/preprocessor/arithmetic/inc.hpp>
-#include <boost/preprocessor/repetition/repeat_from_to.hpp>
-#include <boost/preprocessor/repetition/enum_params.hpp>
-#include <boost/assign/v2/detail/config/limit_csv_arity.hpp>
-#endif
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace result_of{
-
- template<typename Tag1,typename T>
- struct empty_csv_anon
- : nth_result_of::csv_anon<0, Tag1, T>{};
-
-}// result_of
-
- template<typename Tag1, typename T>
- typename result_of::empty_csv_anon<Tag1, T>::type
- csv_anon( keyword_aux::nil )
- {
- typedef typename result_of::empty_csv_anon<Tag1, T>::type result_;
- return result_();
- }
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-
-namespace csv_anon_aux{
-
- template<std::size_t n,typename U,typename R>
- void assign(R& r){}
-
- template<std::size_t n, typename U, typename R, typename... Args>
- void assign(R& r, U& u, Args&...args)
- {
- typedef typename R::wrapper_type wrapper_;
- r.get_wrapper( n ) = wrapper_( u );
- csv_anon_aux::assign<n + 1, U>(r, args...);
- }
-
- template<typename Tag1, typename U, typename... Args>
- struct result
- {
- BOOST_STATIC_CONSTANT(std::size_t, n = 1 + sizeof...(Args) );
- typedef typename nth_result_of::csv_anon<
- n,
- Tag1,
- U
- >::type type;
-
- static type call(U& u, Args&...args)
- {
- type result;
- csv_anon_aux::assign<0, U>(result, u, args...);
- return result;
- }
-
- };
-
-}// csv_anon_aux
-
-#define MACRO(U, Brgs)\
- template<typename Tag1,typename T,typename...Args>\
- typename csv_anon_aux::result<Tag1, U, Brgs...>::type\
- csv_anon( U& u, Brgs&...args )\
- {\
- typedef csv_anon_aux::result<Tag1, U, Brgs...> caller_;\
- return caller_::call( u, args... );\
- }\
-/**/
-MACRO(T, Args)
-MACRO(T const, Args const)
-#undef MACRO
-
-#else
-
- template<std::size_t i, typename U, typename R>
- void assign(R& r, U& u)
- {
- typedef typename R::wrapper_type wrapper_;
- r.get_wrapper( i ) = wrapper_( u );
- }
-
-#define MACRO1(z, i, U) assign<i, U>( r, BOOST_PP_CAT(_,i) );
-#define MACRO2(z, n, U)\
- template<typename Tag1, typename T>\
- typename nth_result_of::csv_anon<\
- n,\
- Tag1,\
- U\
- >::type\
- csv_anon( BOOST_PP_ENUM_PARAMS(n, U& _) ) \
- {\
- typedef typename nth_result_of::csv_anon<\
- n,\
- Tag1,\
- U\
- >::type result_;\
- result_ r;\
- BOOST_PP_REPEAT( n, MACRO1, U )\
- return r;\
- }\
-/**/
-
-#define MACRO(z, n, data)\
-MACRO2(z, n, T)\
-MACRO2(z, n, T const)\
-/**/
-
-BOOST_PP_REPEAT_FROM_TO(
- 1,
- BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY),
- MACRO,
- ~
-)
-#undef MACRO1
-#undef MACRO2
-#undef MACRO
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/csv/nth_result_of.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/csv/nth_result_of.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/csv/nth_result_of.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,36 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_CONTAINER_ANON_CSV_NTH_RESULT_OF_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_CONTAINER_ANON_CSV_NTH_RESULT_OF_ER_2010_HPP
-#include <boost/mpl/empty_base.hpp>
-#include <boost/assign/v2/ref/static_array/alloc/fast_alloc_fwd.hpp>
-
-namespace boost{
- struct use_default;
-namespace assign{
-namespace v2{
-namespace ref{
-namespace anon_aux{
- typedef boost::use_default csv_tag2_;
-}// anon_aux
-namespace nth_result_of{
-
- template<std::size_t N, typename Tag1, typename T>
- struct csv_anon{
- typedef static_array_aux::fast_alloc<N, Tag1, T> type;
- };
-
-}// nth_result_of
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/functor.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/functor.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/functor.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,20 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_ANON_FUNCTOR_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_ANON_FUNCTOR_ER_2010_HPP
-
-#include <boost/assign/v2/ref/anon/functor/assign_copy.hpp>
-#include <boost/assign/v2/ref/anon/functor/assign_rebind.hpp>
-#include <boost/assign/v2/ref/anon/functor/make.hpp>
-#include <boost/assign/v2/ref/anon/functor/nth_result_of.hpp>
-#include <boost/assign/v2/ref/anon/functor/tag2.hpp>
-
-#endif
-
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_copy.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_copy.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_copy.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,17 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_ANON_FUNCTOR_ASSIGN_COPY_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_ANON_FUNCTOR_ASSIGN_COPY_ER_2010_HPP
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-#include <boost/assign/v2/ref/anon/functor/assign_xxx.hpp>
-
-BOOST_ASSIGN_V2_REF_ANON_FUNCTOR_XXX( assign_copy, assign_tag::copy )
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_rebind.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_rebind.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_rebind.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,17 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_ANON_FUNCTOR_ASSIGN_REBIND_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_ANON_FUNCTOR_ASSIGN_REBIND_ER_2010_HPP
-#include <boost/assign/v2/ref/wrapper/rebind.hpp>
-#include <boost/assign/v2/ref/anon/functor/assign_xxx.hpp>
-
-BOOST_ASSIGN_V2_REF_ANON_FUNCTOR_XXX( assign_rebind, assign_tag::rebind )
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_xxx.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_xxx.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/functor/assign_xxx.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,64 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_ANON_FUNCTOR_XXX
-#include <boost/assign/v2/detail/keyword/nil.hpp>
-#include <boost/assign/v2/ref/anon/functor/make.hpp>
-#define BOOST_ASSIGN_V2_REF_ANON_FUNCTOR_XXX(NS, Tag1) \
- \
-namespace boost{ \
-namespace assign{ \
-namespace v2{ \
-namespace ref{ \
-namespace NS{ \
-namespace nth_result_of{ \
- template<std::size_t N,typename T> \
- struct anon : ref::nth_result_of::anon<N,Tag1,T>{}; \
-}\
-namespace result_of{ \
- \
- template<typename T> \
- struct empty_anon : ref::result_of::empty_anon< \
- Tag1, T \
- >{}; \
- \
- template<typename T> \
- struct anon : ref::result_of::anon< \
- Tag1, T \
- >{}; \
- \
-} \
- template<typename T> \
- typename NS::result_of::empty_anon<T>::type \
- anon( keyword_aux::nil const& ) \
- { \
- return ref::anon<Tag1,T>( v2::_nil ); \
- } \
- template<typename T> \
- typename NS::result_of::anon<T>::type \
- anon(T& t) \
- { \
- return ref::anon<Tag1>( t ); \
- } \
- template<typename T> \
- typename NS::result_of::anon<T const>::type \
- anon(T const& t) \
- { \
- return ref::anon<Tag1>( t ); \
- } \
-\
-} \
-} \
-} \
-} \
-} \
-/**/
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/functor/make.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/functor/make.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/functor/make.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,61 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_ANON_FUNCTOR_MAKE_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_ANON_FUNCTOR_MAKE_ER_2010_HPP
-#include <boost/assign/v2/ref/fusion/make.hpp>
-#include <boost/assign/v2/ref/static_array/alloc/lazy_alloc.hpp>
-#include <boost/assign/v2/ref/fusion/assign_array.hpp>
-#include <boost/assign/v2/ref/anon/functor/nth_result_of.hpp>
-#include <boost/assign/v2/ref/anon/functor/tag2.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace result_of{
-
- template<typename Tag1,typename T>
- struct empty_anon
- : nth_result_of::anon<0, Tag1, T>{};
-
- template<typename Tag1, typename T>
- struct anon
- : nth_result_of::anon<1, Tag1, T>{};
-
-}// result_of
-
- template<typename Tag1, typename T>
- typename result_of::empty_anon<Tag1, T>::type
- anon( keyword_aux::nil const& )
- {
- typedef anon_aux::unary_tag2_ tag2_;
- return ref::fusion<Tag1, tag2_,T>( v2::_nil );
- }
-
- template<typename Tag1,typename T>
- typename result_of::anon<Tag1, T>::type
- anon(T& t)
- {
- return anon<Tag1, T>( v2::_nil )( t );
- }
-
- template<typename Tag1,typename T>
- typename result_of::anon<Tag1, T const>::type
- anon(T const & t)
- {
- return anon<Tag1, T const>( v2::_nil )( t );
- }
-
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/functor/nth_result_of.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/functor/nth_result_of.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/functor/nth_result_of.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,55 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_ANON_FUNCTOR_NTH_RESULT_OF2_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_ANON_FUNCTOR_NTH_RESULT_OF2_ER_2010_HPP
-#include <boost/assign/v2/ref/anon/functor/tag2.hpp>
-#include <boost/assign/v2/ref/fusion/nth_result_of.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace anon_aux{
-
- template<typename Tag1, typename T>
- struct empty_anon : fusion_aux::empty<
- Tag1,
- anon_aux::unary_tag2_,
- T
- >{};
-
- template<std::size_t N,typename Tag1,typename T>
- struct recursive_result
- {
- typedef typename recursive_result<
- N-1, Tag1, T
- >::type previous_;
- typedef typename previous_::template result<T>::type type;
- };
-
- template<typename Tag1, typename T>
- struct recursive_result<0, Tag1, T>
- : empty_anon<Tag1, T>{};
-
-}// anon_aux
-namespace nth_result_of{
-
- template<std::size_t N,typename Tag1, typename T>
- struct anon
- : anon_aux::recursive_result<N, Tag1, T>
- {};
-
-}// nth_result_of
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/anon/functor/tag2.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/anon/functor/tag2.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/functor/tag2.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,26 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_ANON_FUNCTOR_TAG2_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_ANON_FUNCTOR_TAG2_ER_2010_HPP
-#include <boost/assign/v2/ref/static_array/alloc/lazy_alloc_fwd.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace anon_aux{
- typedef ref::alloc_tag::lazy_alloc unary_tag2_;
-}// anon_aux
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/detail/convert_traits/add_const.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/detail/convert_traits/add_const.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/detail/convert_traits/add_const.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -32,4 +32,4 @@
}// assign
}// boost
-#endif
\ No newline at end of file
+#endif
Modified: sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/iterator.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/iterator.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/iterator.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -9,14 +9,11 @@
//////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_ASSIGN_V2_REF_WRAPPER_UNWRAP_ITERATOR_ER_2010_HPP
#define BOOST_ASSIGN_V2_REF_WRAPPER_UNWRAP_ITERATOR_ER_2010_HPP
-#include <boost/mpl/assert.hpp>
-#include <boost/mpl/bool.hpp>
-#include <boost/type_traits/is_convertible.hpp>
-#include <boost/type_traits/remove_cv.hpp>
+#include <boost/range/reference.hpp>
#include <boost/type_traits/remove_reference.hpp>
-#include <boost/type_traits/add_const.hpp>
-#include <boost/iterator/iterator_adaptor.hpp>
-#include <boost/assign/v2/ref/detail/unwrap/reference.hpp>
+#include <boost/type_traits/is_convertible.hpp>
+#include <boost/ref.hpp> // is_reference_wrapper<>
+#include <boost/assign/v2/ref/detail/unwrap/iterator.hpp>
// Calling
// *unwrap_iterator( it );
@@ -24,64 +21,85 @@
// (*it).unwrap();
// if *it is a reference wrapper, otherwise
// (*it);
+// Note this is necessary for chaining, at least.
namespace boost{
+ struct use_default;
namespace assign{
namespace v2{
namespace ref{
namespace unwrap_aux{
- template<typename I>
- struct reference_of_iterator : unwrap_aux::reference<
- typename boost::iterator_reference<I>::type
- >{};
+ template<typename I,
+ typename R = typename boost::iterator_reference<I>::type,
+ typename V = typename boost::remove_reference<R>::type
+ > struct iterator;
template<
- typename I,
- typename R = typename unwrap_aux::reference_of_iterator<I>::type,
- typename V = typename boost::remove_reference<R>::type
+ typename I, typename R, typename V,
+ bool is_rw = boost::is_reference_wrapper<V>::value
>
- struct iterator : boost::iterator_adaptor<
- iterator<I,R,V> // Derived
- ,I // Base
- ,V // Value
- ,use_default // CategoryOrTraversal
- ,R // Reference
- ,use_default // Difference
- >{
+ struct iterator_traits{
+
+ typedef R reference;
+ typedef V value_type;
+
+ typedef unwrap_aux::iterator<I, R, V> derived_;
typedef boost::iterator_adaptor<
- iterator<I,R,V>,
- I,
- V,
- use_default,
- R,
- use_default
- > super_;
+ derived_ // Derived
+ ,I // Base
+ ,value_type // Value
+ ,use_default // CategoryOrTraversal
+ ,reference // Reference
+ ,use_default // Difference
+ > adaptor_;
+
+ };
+ template<typename I, typename R, typename W>
+ struct iterator_traits<I, R, W, true> : unwrap_aux::iterator_traits<
+ I,
+ typename boost::add_reference<
+ typename boost::unwrap_reference<W>::type
+ >::type,
+ W,
+ false
+ >
+ {
+ typedef typename boost::unwrap_reference<W>::type inner_value_type;
+ // If inner_value_type == T[], and value_type were set to that type,
+ // compiler complains that iterator_facade's operator[] would copy T[]
+ // So, instead, value_type = W, such that the returned value acts a bit
+ // like operator_brackets_proxy<I>.
+ //
+ // In contrast, the solution adapted in Boost.Assign v1 in this kind
+ // of situation is to use boost::decay<inner_value_type>::type.
+
+ };
+
+ template<typename I, typename R, typename V>
+ struct iterator : unwrap_aux::iterator_traits<I, R, V>::adaptor_
+ {
+ typedef typename unwrap_aux::iterator_traits<I, R, V>::adaptor_ super_t;
+
iterator(){}
- iterator(I base):super_(base)
+ iterator(I base) : super_t(base)
{
typedef typename boost::iterator_reference<I>::type ref_;
typedef typename
- boost::is_convertible<ref_,R>::type is_convertible_;
+ boost::is_convertible<ref_, R>::type is_convertible_;
BOOST_MPL_ASSERT(( is_convertible_ ));
}
};
template<typename It>
- struct is_iterator : boost::mpl::false_{};
+ struct is_unwrapped_iterator : boost::mpl::false_{};
template<typename I, typename R, typename V>
- struct is_iterator< unwrap_aux::iterator<I,R,V> >
+ struct is_unwrapped_iterator< unwrap_aux::iterator<I, R, V> >
: boost::mpl::true_{};
}// unwrap_aux
-
- template<typename It>
- struct is_unwrapped_iterator : unwrap_aux::is_iterator<
- typename boost::remove_cv<It>::type
- >{};
-
namespace result_of{
template<typename I>
@@ -100,7 +118,6 @@
return result_( base );
}
-
}// ref
}// v2
}// assign
Modified: sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/range.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/range.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/range.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -9,7 +9,6 @@
//////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_ASSIGN_V2_REF_WRAPPER_UNWRAP_RANGE_ER_2010_HPP
#define BOOST_ASSIGN_V2_REF_WRAPPER_UNWRAP_RANGE_ER_2010_HPP
-#include <boost/type_traits/add_reference.hpp>
#include <boost/range/begin.hpp>
#include <boost/range/end.hpp>
#include <boost/range/iterator.hpp>
@@ -23,26 +22,19 @@
namespace unwrap_aux{
template<typename R>
- struct is_range : is_unwrapped_iterator<
+ struct is_unwrapped_range : unwrap_aux::is_unwrapped_iterator<
typename boost::range_iterator<R>::type
>{};
-// TODO remove
-// I guess this is subsumed by range_reference
-// template<typename R>
-// struct reference_of_unwrapped_range
-// : unwrap::reference_of_iterator<
-// typename boost::range_iterator<R>::type
-// >{};
-
- template<typename R, bool = unwrap_aux::is_range<R>::value>
- struct result_of_unwrap_range
+ template<typename R, bool = unwrap_aux::is_unwrapped_range<R>::value>
+ struct caller
{
typedef typename boost::range_iterator<R>::type base_it_;
typedef typename result_of::unwrap_iterator<base_it_>::type it_;
typedef boost::iterator_range<it_> type;
- static type call( R& r){
+ static type call( R& r)
+ {
return type(
ref::unwrap_iterator( boost::begin( r ) ),
ref::unwrap_iterator( boost::end( r ) )
@@ -52,7 +44,7 @@
// No need to unwrap twice
template<typename R>
- struct result_of_unwrap_range<R,true>
+ struct caller<R, true>
{
typedef R type; // don't change this to R&
static type call( R& r){ return r; }
@@ -61,12 +53,12 @@
}// unwrap_aux
template<typename R>
- struct is_unwrapped_range : unwrap_aux::is_range<R>{};
+ struct is_unwrapped_range : unwrap_aux::is_unwrapped_range<R>{};
namespace result_of{
template<typename R>
- struct unwrap_range : unwrap_aux::result_of_unwrap_range<R>{};
+ struct unwrap_range : unwrap_aux::caller<R>{};
}// result_of
Modified: sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/reference.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/reference.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/detail/unwrap/reference.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,52 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_UNWRAP_REFERENCE_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_UNWRAP_REFERENCE_ER_2010_HPP
-#include <boost/mpl/assert.hpp>
-#include <boost/mpl/eval_if.hpp>
-#include <boost/mpl/identity.hpp>
-#include <boost/iterator/iterator_traits.hpp>
-#include <boost/type_traits/is_reference.hpp>
-#include <boost/type_traits/add_reference.hpp>
-#include <boost/type_traits/remove_reference.hpp>
-#include <boost/range/reference.hpp>
-#include <boost/assign/v2/ref/wrapper/framework.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace unwrap_aux{
-
- // U Result
- // ref::wrapper<Tag,T> T&
- // ref::wrapper<Tag,T>& T&
- // T& T&
- template<typename U,typename T = typename boost::remove_reference<U>::type>
- struct reference : boost::mpl::eval_if<
- boost::is_reference_wrapper<T>,
- boost::add_reference<
- typename boost::unwrap_reference<T>::type
- >,
- boost::mpl::identity<U>
- >{
- static void test()
- {
- BOOST_MPL_ASSERT_NOT(( boost::is_reference<T> ));
- };
- };
-
-}// unwrap_aux
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/ref/fusion/assign_array.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/fusion/assign_array.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/fusion/assign_array.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -17,15 +17,15 @@
namespace boost{
struct use_default;
-namespace assign{
+namespace assign{
namespace v2{
namespace ref{
namespace fusion_aux{
// ---- assign_array ---- //
-
+
template<
- std::size_t K,typename A,
+ std::size_t K,typename A,
std::size_t N, typename L, typename Tag1, typename Tag2, typename T
>
void assign_array(
@@ -38,7 +38,7 @@
}
template<
- std::size_t K,typename A,
+ std::size_t K,typename A,
std::size_t N, typename L, typename Tag1, typename Tag2,typename T
>
void assign_array(
@@ -46,20 +46,20 @@
A& a,
const fusion_aux::container<N, L, Tag1, Tag2, T>& f
)
- {
- typedef boost::mpl::int_<K-1> index_;
- a[ K - 1 ].rebind( f.static_lookup( index_() ) ) ;
- typedef index_ next_size_;
- typedef boost::mpl::int_<0> zero_;
- typedef typename boost::mpl::equal_to<next_size_,zero_>::type exit_;
- assign_array<K-1>( exit_(), a, f );
+ {
+ typedef boost::mpl::int_<K-1> index_;
+ a[ K - 1 ].rebind( f.static_lookup( index_() ) ) ;
+ typedef index_ next_size_;
+ typedef boost::mpl::int_<0> zero_;
+ typedef typename boost::mpl::equal_to<next_size_,zero_>::type exit_;
+ assign_array<K-1>( exit_(), a, f );
}
// A must be a static array of reference wrappers
template<typename A,std::size_t N, typename L,
typename Tag1, typename Tag2, typename T>
void assign_array(
- A& a,
+ A& a,
fusion_aux::container<N, L, Tag1, Tag2, T> const & f
)
{
@@ -70,8 +70,11 @@
typedef typename boost::mpl::equal_to<size_, zero_>::type exit_;
fusion_aux::assign_array<size_::value>( exit_(), a, f );
}
-
-}// fusion_aux
+
+}// fusion_aux
+
+using fusion_aux::assign_array;
+
}// ref
}// v2
}// assign
Modified: sandbox/statistics/support/boost/assign/v2/ref/fusion/assign_rebind.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/fusion/assign_rebind.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/fusion/assign_rebind.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,17 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_FUSION_ASSIGN_REBIND_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_FUSION_ASSIGN_REBIND_ER_2010_HPP
-#include <boost/assign/v2/ref/wrapper/rebind.hpp>
-#include <boost/assign/v2/ref/fusion/assign_xxx.hpp>
-
-BOOST_ASSIGN_V2_REF_FUSION_ASSIGN_XXX(assign_rebind, assign_tag::rebind)
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/ref/fusion/link_holder.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/fusion/link_holder.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/fusion/link_holder.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -27,17 +27,20 @@
public:
- link_holder(){}
- link_holder( const L& l) : value( l ){}
+ //link_holder();
+ explicit link_holder( const L& l) : value( l ){}
wrapper_ pop()const
{
// Warning : probably inefficient
- return value;
+ return this->value;
}
typedef typename wrapper_::unwrap_type link_type;
- link_type link()const{ return this->value.unwrap(); }
+ link_type link()const
+ {
+ return this->value.unwrap();
+ }
protected:
mutable wrapper_ value;
Modified: sandbox/statistics/support/boost/assign/v2/ref/fusion/nth_result_of.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/fusion/nth_result_of.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/fusion/nth_result_of.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -16,7 +16,6 @@
#include <boost/mpl/eval_if.hpp>
#include <boost/mpl/identity.hpp>
#include <boost/type_traits/is_same.hpp>
-#include <boost/assign/v2/ref/wrapper/deduce_assign_tag.hpp>
#include <boost/assign/v2/ref/fusion/fwd.hpp>
#include <boost/assign/v2/ref/fusion/root.hpp>
#include <boost/assign/v2/ref/fusion/nil_arg.hpp>
Modified: sandbox/statistics/support/boost/assign/v2/ref/fusion/policy.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/fusion/policy.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/fusion/policy.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -11,7 +11,7 @@
#define BOOST_ASSIGN_V2_REF_FUSION_POLICY_ER_2010_HPP
#include <boost/mpl/empty_base.hpp>
#include <boost/mpl/always.hpp>
-#include <boost/assign/v2/ref/static_array/alloc/lazy_alloc.hpp>
+#include <boost/assign/v2/ref/array/alloc/lazy.hpp>
#include <boost/assign/v2/ref/fusion/fwd.hpp>
#include <boost/assign/v2/ref/fusion/most_const.hpp>
@@ -45,7 +45,7 @@
tag2_,
T
> derived_;
- typedef static_array_aux::lazy_alloc<
+ typedef array_aux::lazy_alloc<
N::value,
Tag1,
most_c_,
Modified: sandbox/statistics/support/boost/assign/v2/ref/fusion_matrix/container.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/fusion_matrix/container.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/fusion_matrix/container.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -50,11 +50,12 @@
#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-//#if BOOST_ASSIGN_V2_ENABLE_CPP0X
+#if BOOST_ASSIGN_V2_ENABLE_CPP0X
// for testing purposes only.
-//#include <iostream> // remove
+#include <iostream> // remove
//#include <boost/tuple/detail/print_tuple.hpp>
-//#endif
+#include <boost/static_assert.hpp>
+#endif
namespace boost{
struct use_default;
@@ -63,7 +64,6 @@
namespace ref{
namespace fusion_matrix_aux{
-
template<
std::size_t N, typename L, typename Tag1, typename Tag2,
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
@@ -204,12 +204,19 @@
~
)
> tuple_;
+
#undef MACRO
#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
tuple_ tuple;
+ // TODO remove
+ public:
+ tuple_ const get_tuple()const{ return this->tuple; }
+ protected:
+ // <-
+
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
// TODO remove
// typedef typename boost::mpl::detail::variadic_vector<
@@ -236,8 +243,10 @@
#endif
);
+ container(){
+ BOOST_STATIC_ASSERT( N==0 );
+ }
- container(){}
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
explicit container(
@@ -246,7 +255,8 @@
tuple(
ref::wrap<assign_tag_>( args )...
)
- {}
+ {
+ }
#else
@@ -424,7 +434,6 @@
typename static_elem_result<n>::type
static_elem( boost::mpl::int_<n> )const
{
-
return
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
std::
Modified: sandbox/statistics/support/boost/assign/v2/ref/fusion_matrix/nth_result_of.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/fusion_matrix/nth_result_of.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/fusion_matrix/nth_result_of.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -17,7 +17,7 @@
#include <boost/mpl/identity.hpp>
#include <boost/mpl/placeholders.hpp>
#include <boost/mpl/size.hpp>
-//#include <boost/mpl/unpack_args.hpp>
+#include <boost/mpl/unpack_args.hpp>
#include <boost/mpl/at.hpp>
#include <boost/assign/v2/ref/fusion/root.hpp>
Modified: sandbox/statistics/support/boost/assign/v2/ref/static_array.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/static_array.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/static_array.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,16 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_STATIC_ARRAY_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_STATIC_ARRAY_ER_2010_HPP
-
-#include <boost/assign/v2/ref/static_array/alloc.hpp>
-#include <boost/assign/v2/ref/static_array/interface.hpp>
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,16 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_STATIC_ARRAY_ALLOC_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_STATIC_ARRAY_ALLOC_ER_2010_HPP
-
-#include <boost/assign/v2/ref/static_array/alloc/fast_alloc.hpp>
-#include <boost/assign/v2/ref/static_array/alloc/lazy_alloc.hpp>
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/fast_alloc.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/fast_alloc.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/fast_alloc.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,68 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_STATIC_ARRAY_ALLOC_FAST_ALLOC_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_STATIC_ARRAY_ALLOC_FAST_ALLOC_ER_2010_HPP
-#include <boost/assign/v2/ref/wrapper.hpp>
-#include <boost/assign/v2/ref/fusion/assign_array.hpp>
-#include <boost/assign/v2/ref/static_array/interface.hpp>
-#include <boost/assign/v2/ref/static_array/alloc/fast_alloc_fwd.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace alloc_tag{
- struct fast_alloc{};
-}// alloc_tag
-namespace static_array_aux{
-
- template<std::size_t N,typename Tag, typename T>
- class fast_alloc
- : public static_array_aux::interface<
- N, Tag, T, fast_alloc<N,Tag,T>
- >
- {
-
- typedef Tag assign_tag_;
- typedef typename ref::wrapper<assign_tag_,T> wrapper_;
- typedef boost::array<wrapper_,N> array_;
-
- public:
-
- fast_alloc(){}
-
- template<typename L>
- fast_alloc(const L& l){
- assign_array(
- this->array,
- l
- );
- }
-
- array_& impl(){
- return this->array;
- }
-
- array_ const & impl()const{
- return this->array;
- }
-
- protected:
- mutable array_ array;
-
- };
-
-}// static_array_aux
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/fast_alloc_fwd.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/fast_alloc_fwd.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/fast_alloc_fwd.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,29 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_STATIC_ARRAY_ALLOC_FAST_ALLOC_FWD_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_STATIC_ARRAY_ALLOC_FAST_ALLOC_FWD_ER_2010_HPP
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace alloc_tag{
- struct fast_alloc;
-}// alloc_tag
-namespace static_array_aux{
- template<std::size_t N, typename Tag, typename T>
- class fast_alloc;
-}// static_array_aux
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/lazy_alloc.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/lazy_alloc.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/lazy_alloc.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,83 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_STATIC_ARRAY_ALLOC_LAZY_ALLOC_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_STATIC_ARRAY_ALLOC_LAZY_ALLOC_ER_2010_HPP
-#include <boost/shared_ptr.hpp>
-#include <boost/assign/v2/ref/wrapper.hpp>
-#include <boost/assign/v2/ref/fusion/assign_array.hpp>
-#include <boost/assign/v2/ref/static_array/alloc/lazy_alloc_fwd.hpp>
-#include <boost/assign/v2/ref/static_array/interface.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace alloc_tag{
- struct lazy_alloc;
-}// alloc_tag
-namespace static_array_aux{
-
- template<std::size_t N,typename Tag, typename T, typename D>
- class lazy_alloc : public static_array_aux::interface<
- N, Tag, T, lazy_alloc<N,Tag,T,D>
- >
- {
- typedef Tag assign_tag_;
- typedef typename ref::wrapper<assign_tag_,T> wrapper_;
- typedef boost::array<wrapper_,N> array_;
-
- typedef boost::mpl::int_<N> size_;
-
- void alloc_if()const{
- if(!this->ptr){
- return this->alloc();
- }
- }
-
- void alloc()const{
- this->ptr = smart_ptr_(new array_);
- assign_array(
- *this->ptr,
- static_cast<const D&>(*this)
- );
- }
-
- typedef static_array_aux::interface<
- N, Tag, T, lazy_alloc
- > super_t;
-
- public:
-
- array_& impl(){
- this->alloc_if();
- return (*this->ptr);
- }
-
- array_ const & impl()const{
- this->alloc_if();
- return (*this->ptr);
- }
-
- using super_t::operator[];
-
- private:
-
- typedef boost::shared_ptr<array_> smart_ptr_;
- mutable smart_ptr_ ptr;
-
- };
-
-}// static_array_aux
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/lazy_alloc_fwd.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/lazy_alloc_fwd.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/static_array/alloc/lazy_alloc_fwd.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,29 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_STATIC_ARRAY_ALLOC_LAZY_ALLOC_FWD_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_STATIC_ARRAY_ALLOC_LAZY_ALLOC_FWD_ER_2010_HPP
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace alloc_tag{
- struct lazy_alloc;
-}// alloc_tag
-namespace static_array_aux{
- template<std::size_t N, typename Tag, typename T, typename D>
- class lazy_alloc;
-}// static_array_aux
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/static_array/interface.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/static_array/interface.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/static_array/interface.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,239 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_STATIC_ARRAY_INTERFACE_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_STATIC_ARRAY_INTERFACE_ER_2010_HPP
-#include <algorithm>
-#include <boost/mpl/bool.hpp>
-#include <boost/mpl/int.hpp>
-
-#include <boost/utility/enable_if.hpp>
-#include <boost/type_traits/is_same.hpp>
-#include <boost/type_traits/remove_const.hpp>
-#include <boost/type_traits/add_const.hpp>
-
-#include <boost/array.hpp>
-#include <boost/range.hpp>
-#include <boost/call_traits.hpp>
-#include <boost/range/algorithm/for_each.hpp>
-#include <boost/range/iterator_range.hpp> //iterator_range_detail::
-
-#include <boost/assign/v2/ref/wrapper/framework.hpp>
-#include <boost/assign/v2/ref/wrapper/crtp.hpp>
-#include <boost/assign/v2/ref/detail/unwrap/range.hpp>
-#include <boost/assign/v2/detail/relational_op.hpp>
-// #include <boost/assign/v2/put/range/convert.hpp> // TODO remove
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace static_array_aux{
-
- template<std::size_t N, typename Tag, typename T>
- struct interface_traits{
-
- typedef Tag assign_tag_;
- typedef typename ref::wrapper<assign_tag_,T> wrapper_;
- typedef boost::array<wrapper_,N> impl_;
- typedef typename ref::result_of::unwrap_range<impl_>::type range_;
- typedef typename ref::result_of::unwrap_range<
- impl_ const>::type range_c_;
-
- typedef typename boost::unwrap_reference<T>::type value_type;
- typedef typename boost::add_reference<value_type>::type reference;
- typedef typename boost::call_traits<reference>::const_reference
- const_reference;
- typedef typename boost::range_iterator<range_>::type iterator;
- typedef typename boost::range_iterator<range_c_>::type const_iterator;
- // wrappers
- #ifndef BOOST_MSVC
- typedef typename boost::range_size<impl_>::type size_type;
- #endif
- #ifdef BOOST_MSVC
- typedef std::size_t size_type;
- #endif
- typedef typename boost::range_difference<range_>::type difference_type;
-
- };
-
- template<std::size_t N, typename Tag, typename T, typename D>
- class interface
- : public relational_op_aux::crtp<
- interface<N, Tag, T, D>
- >
- {
-
- typedef interface_traits<N, Tag, T> traits_;
- typedef typename traits_::wrapper_ wrapper_;
- typedef typename traits_::impl_ impl_;
- typedef interface<N, T, Tag, D> this_;
-
- typedef typename boost::remove_const<T>::type lvalue_;
- typedef typename boost::add_const<T>::type rvalue_;
-
- public:
- typedef wrapper_ wrapper_type;
- typedef typename traits_::value_type value_type;
- typedef typename traits_::iterator iterator;
- typedef typename traits_::const_iterator const_iterator;
- typedef typename traits_::size_type size_type;
- typedef typename traits_::difference_type difference_type;
- typedef typename traits_::reference reference;
- typedef typename traits_::const_reference const_reference;
-
- BOOST_STATIC_CONSTANT(size_type, static_size = N);
-
- iterator begin()
- {
- return boost::begin( this->unwrap() );
- }
- iterator end()
- {
- return boost::end( this->unwrap() );
- }
- const_iterator begin()const
- {
- return boost::begin( this->unwrap() );
- }
- const_iterator end()const
- {
- return boost::end( this->unwrap() );
- }
-
- size_type size() const
- {
- return this->impl().size();
- }
- bool empty() const
- {
- return this->impl().empty();
- }
-
- wrapper_& get_wrapper(size_type i)
- {
- return (this->impl())[i];
- }
-
- wrapper_ const& get_wrapper(size_type i)const
- {
- return (this->impl())[i];
- }
-
- reference operator[](size_type i)
- {
- return (this->impl())[i].unwrap();
- }
- const_reference operator[](size_type i)const
- {
- return (this->impl())[i].unwrap();
- }
-
- reference front()
- {
- return (this->impl()).front().unwrap();
- }
- const_reference front() const
- {
- return (this->impl()).front().unwrap();
- }
- reference back()
- {
- return (this->impl()).back().unwrap();
- }
- const_reference back() const
- {
- return (this->impl()).back().unwrap();
- }
-
- void swap(interface& other)
- {
- typedef boost::mpl::int_<N> int_n_;
- this->swap_impl(other,int_n_());
- }
-
- void assign(lvalue_& val){ this->assign_impl<lvalue_>( val ); }
- void assign(rvalue_& val){ this->assign_impl<rvalue_>( val ); }
-
- // TODO remove
- // BOOST_ASSIGN_V2_CONVERT_CONVERT_MF
- // BOOST_ASSIGN_V2_CONVERT_OPERATOR_MF
-
- // Relational op
-
- template<typename R>
- bool equal_to(const R& r)const{
- return ::boost::iterator_range_detail::equal(
- (*this), r );
- }
-
- template<typename R>
- bool less_than(const R& r)const{
- return ::boost::iterator_range_detail::less_than(
- (*this), r );
- }
-
- protected:
- typedef boost::mpl::false_ false_;
- typedef boost::mpl::true_ true_;
-
- void swap_impl(interface& other, boost::mpl::int_<0>){}
-
- template<int N1>
- void swap_impl(interface& other, boost::mpl::int_<N1>)
- {
- reference lhs = (*this)[N1-1];
- reference rhs = (other)[N1-1];
- lhs.swap(rhs);
- typedef boost::mpl::int_<N1-1> next_int_;
- this->swap_impl( other, next_int_() );
- }
-
- typename traits_::range_ unwrap()
- {
- return ref::unwrap_range( this->impl() );
- }
- typename traits_::range_c_ unwrap()const{
- return ref::unwrap_range( this->impl() );
- }
-
- impl_& impl(){
- return static_cast<D&>(*this).impl();
- }
-
- impl_ const& impl()const{
- return static_cast<const D&>(*this).impl();
- }
-
- template<typename U>
- void assign_impl(U& val)
- {
- impl_& ra = this->impl();
- boost::for_each(
- ra,
- functional::assigner<U>( val )
- );
- }
-
- };
-
-}// static_array_aux
-namespace container_type_traits{
- // TODO
-
-// template<typename T,std::size_t sz>
-// struct is_static_array<boost::array<T, sz> > : boost::mpl::true_{};
-
-}// container_type_traits
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
Modified: sandbox/statistics/support/boost/assign/v2/ref/wrapper/base.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/wrapper/base.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/wrapper/base.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,50 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_WRAPPER_BASE
-#include <boost/config.hpp>
-#include <boost/type_traits/is_const.hpp>
- template<typename D, typename T>
- class wrapper_crtp;
-#define BOOST_ASSIGN_V2_REF_WRAPPER_BASE(X) \
- typedef T type; \
- BOOST_STATIC_CONSTANT( \
- bool, \
- is_const = boost::is_const<T>::value \
- ); \
- \
- X(){} \
- \
- explicit X( T& r ) : ref_(&r) \
- { } \
- \
- void rebind(T& r ) \
- { \
- this->ref_ = &r; \
- } \
- \
- typedef T& unwrap_type;\
- T& unwrap() const \
- { \
- return *this->ref_; \
- } \
- \
- T* get_pointer() const { return this->ref_; } \
- \
- using wrapper_crtp<wrapper,T>::operator=; \
- \
- protected: \
- friend class wrapper_crtp<wrapper,T>; \
- \
- T* ref_; \
- public: \
-/**/
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/ref/wrapper/copy.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/wrapper/copy.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/wrapper/copy.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -11,7 +11,9 @@
#define BOOST_ASSIGN_V2_REF_WRAPPER_COPY_ER_2010_HPP
#include <algorithm>
#include <boost/mpl/bool.hpp>
+#include <boost/config.hpp>
#include <boost/call_traits.hpp>
+#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/remove_cv.hpp>
#include <boost/assign/v2/ref/wrapper/framework.hpp>
#include <boost/assign/v2/ref/wrapper/base.hpp>
@@ -29,15 +31,44 @@
:
public ref::wrapper_crtp< wrapper<ref::assign_tag::copy, T>, T>
{
- BOOST_ASSIGN_V2_REF_WRAPPER_BASE( wrapper )
+ typedef T type;
+ BOOST_STATIC_CONSTANT(
+ bool,
+ is_const = boost::is_const<T>::value
+ );
+
+ wrapper(){}
+
+ explicit wrapper( T& r ) : ref_(&r)
+ { }
+
+ void rebind(T& r )
+ {
+ this->ref_ = &r;
+ }
+
+ typedef T& unwrap_type;
+ T& unwrap() const
+ {
+ return *this->ref_;
+ }
- typedef ref::assign_tag::copy assign_tag;
+ T* get_pointer() const { return this->ref_; }
+
+ using wrapper_crtp<wrapper,T>::operator=;
void assign(typename boost::call_traits<T>::param_type r )
{
this->unwrap() = r;
}
+ protected:
+ friend class wrapper_crtp<wrapper, T>;
+
+ T* ref_;
+
+ typedef ref::assign_tag::copy assign_tag;
+
void swap( wrapper& r )
{
std::swap( this->unwrap(), r.unwrap() );
@@ -49,20 +80,7 @@
template<typename T>
struct copy_wrapper{ typedef ref::wrapper<assign_tag::copy,T> type; };
-
- template<typename T>
- struct does_assign_copy_impl : boost::mpl::false_{};
-
- template<typename T>
- struct does_assign_copy_impl<
- ref::wrapper<assign_tag::copy, T>
- > : boost::mpl::true_{};
-
- template<typename T>
- struct does_assign_copy : does_assign_copy_impl<
- typename boost::remove_cv<T>::type
- >{};
-
+
}// type_traits
}// ref
}// v2
Modified: sandbox/statistics/support/boost/assign/v2/ref/wrapper/cpp0x.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/wrapper/cpp0x.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/wrapper/cpp0x.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -14,6 +14,8 @@
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
+#include <boost/type_traits/add_const.hpp>
+
namespace boost{
namespace assign{
namespace v2{
@@ -23,26 +25,19 @@
// as the parameter of a reference wrapper.
template<typename T>
- struct wrapper_param
+ struct wrapper_param : boost::add_const<T>
{
// rvalue
- typedef T const type;
-
};
+ // lvalue:
+
template<typename T>
struct wrapper_param<T&>
{
typedef T type;
};
- template<typename T>
- struct wrapper_param<T const &>
- {
- typedef T const type;
- };
-
-
}// ref
}// v2
}// assign
Modified: sandbox/statistics/support/boost/assign/v2/ref/wrapper/crtp.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/wrapper/crtp.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/wrapper/crtp.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -17,10 +17,7 @@
#include <boost/call_traits.hpp>
#include <boost/operators.hpp>
-// This design is an outgrowth of assign_detail::assign_reference<> by TO. The
-// new feature is that the assignment operator and swap member function are
-// customizable and there are two options, identified by MPG : the
-// reference is assigned a new value (copy), or a new address (rebind).
+// This design is an outgrowth of assign_detail::assign_reference<> by TO.
namespace boost{
namespace assign{
@@ -107,40 +104,6 @@
l.swap( r );
}
-namespace functional{
-
- template<typename T>
- struct assigner
- {
- assigner(T& val):value( val ){}
-
- typedef typename boost::remove_const<T>::type lvalue_;
- typedef typename boost::add_const<T>::type rvalue_;
-
- typedef void result_type;
-
- template<typename D> void operator()(wrapper_crtp<D, lvalue_>& w)const
- {
- this->impl<D, lvalue_>( w );
- }
-
- template<typename D> void operator()(wrapper_crtp<D, rvalue_>& w)const
- {
- this->impl<D, rvalue_>( w );
- }
-
- private:
- template<typename D, typename U>
- void impl(wrapper_crtp<D, U>& w)const
- {
- w = this->value;
- }
-
- assigner();
- mutable T& value;
- };
-
-}// functional
}// ref
}// v2
}// assign
Modified: sandbox/statistics/support/boost/assign/v2/ref/wrapper/deduce_assign_tag.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/wrapper/deduce_assign_tag.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/wrapper/deduce_assign_tag.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,40 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_WRAPPER_DEDUCE_ASSIGN_TAG_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_WRAPPER_DEDUCE_ASSIGN_TAG_ER_2010_HPP
-#include <boost/mpl/eval_if.hpp>
-#include <boost/mpl/identity.hpp>
-#include <boost/type_traits/is_same.hpp>
-
-namespace boost{
- struct use_default;
-namespace assign{
-namespace v2{
-namespace ref{
-namespace assign_tag{
- struct copy;
-}// assign_tag
-namespace wrapper_aux{
-
- template<typename Tag>
- struct deduce_assign_tag : boost::mpl::eval_if<
- boost::is_same<Tag, boost::use_default>,
- boost::mpl::identity<ref::assign_tag::copy>,
- boost::mpl::identity<Tag>
- >
- {};
-
-}// wrapper_aux
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
Modified: sandbox/statistics/support/boost/assign/v2/ref/wrapper/framework.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/wrapper/framework.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/wrapper/framework.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -21,7 +21,7 @@
};
namespace result_of{
- template<typename Tag,typename T>
+ template<typename Tag, typename T>
struct wrap{
typedef ref::wrapper<Tag,T> type;
};
@@ -51,9 +51,8 @@
#include <boost/mpl/bool.hpp>
#include <boost/ref.hpp>
-#include <boost/assign/v2/ref/wrapper.hpp>
-// These are specializations of classes in boost/ref.hpp.
+// The part below extends boost/ref.hpp.
namespace boost{
Modified: sandbox/statistics/support/boost/assign/v2/ref/wrapper/rebind.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/ref/wrapper/rebind.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/ref/wrapper/rebind.hpp 2011-01-08 19:04:34 EST (Sat, 08 Jan 2011)
@@ -1,60 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// 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_REF_WRAPPER_REBIND_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_WRAPPER_REBIND_ER_2010_HPP
-#include <algorithm>
-//#include <boost/call_traits.hpp>
-#include <boost/assign/v2/ref/wrapper/framework.hpp>
-#include <boost/assign/v2/ref/wrapper/base.hpp>
-#include <boost/assign/v2/ref/wrapper/crtp.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace ref{
-namespace assign_tag{ struct rebind{}; }
-namespace assign_rebind{ typedef assign_tag::rebind assign_tag_; }
-
- template< class T >
- struct wrapper<assign_tag::rebind, T>
- : public wrapper_crtp< wrapper<assign_tag::rebind, T>, T >
- {
- typedef assign_tag::rebind assign_tag;
-
- BOOST_ASSIGN_V2_REF_WRAPPER_BASE( wrapper )
-
- void assign( T& r )
- {
- this->rebind( r );
- }
-
- void swap( wrapper& r )
- {
- T* tmp = this->ref_;
- this->rebind( r.unwrap() );
- r.rebind( tmp );
- }
-
- };
-
-namespace type_traits{
-
- template<typename T>
- struct rebind_wrapper{
- typedef ref::wrapper<assign_tag::rebind,T> type;
- };
-
-}// type_traits
-}// ref
-}// v2
-}// assign
-}// boost
-
-#endif
+// TODO remove file
\ No newline at end of file
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