|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69053 - in sandbox/assign_v2: boost/assign/v2/detail/check boost/assign/v2/detail/check/equal_container boost/assign/v2/detail/config boost/assign/v2/detail/functor boost/assign/v2/detail/keyword boost/assign/v2/detail/pp boost/assign/v2/detail/traits boost/assign/v2/detail/traits/container boost/assign/v2/detail/traits/type boost/assign/v2/put/container boost/assign/v2/put/container/csv boost/assign/v2/put/container/functor boost/assign/v2/put/deduce boost/assign/v2/put/deque boost/assign/v2/put/ext boost/assign/v2/put/frame boost/assign/v2/put/modulo boost/assign/v2/put/pipe boost/assign/v2/put/pipe/csv boost/assign/v2/put/pipe/functor boost/assign/v2/put/pipe/functor/cpp03 boost/assign/v2/put/pipe/functor/cpp0x boost/assign/v2/put/pipe/modulo boost/assign/v2/put/std boost/assign/v2/ref/array boost/assign/v2/ref/array/alloc boost/assign/v2/ref/array/csv boost/assign/v2/ref/array/functor boost/assign/v2/ref/convert_traits boost/assign/v2/ref/list boost/assign/v2/ref/list/array boost/assign/v2/ref/list/holder boost/assign/v2/ref/list_tuple boost/assign/v2/ref/list_tuple/cpp03 boost/assign/v2/ref/list_tuple/cpp0x boost/assign/v2/ref/wrapper boost/assign/v2/utility boost/assign/v2/utility/chain boost/assign/v2/utility/convert libs/assign/v2/src libs/assign/v2/test libs/assign/v2/test/detail/traits libs/assign/v2/test/put libs/assign/v2/test/put/container libs/assign/v2/test/put/deque libs/assign/v2/test/put/ext libs/assign/v2/test/put/pipe libs/assign/v2/test/put/pipe/csv libs/assign/v2/test/put/pipe/functor libs/assign/v2/test/put/ptr libs/assign/v2/test/ref libs/assign/v2/test/ref/array libs/assign/v2/test/utility
From: erwann.rogard_at_[hidden]
Date: 2011-02-19 07:01:16
Author: e_r
Date: 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
New Revision: 69053
URL: http://svn.boost.org/trac/boost/changeset/69053
Log:
replacing tabs with ws assign_v2
Text files modified:
sandbox/assign_v2/boost/assign/v2/detail/check/equal_container.hpp | 4
sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/deduce.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/fifo.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/lifo.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/pp.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/sorted.hpp | 2
sandbox/assign_v2/boost/assign/v2/detail/check/equal_ref.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/detail/check/equal_val.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/detail/config/check.hpp | 4
sandbox/assign_v2/boost/assign/v2/detail/config/limit_arity.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/detail/functor/constructor.hpp | 14 +-
sandbox/assign_v2/boost/assign/v2/detail/functor/crtp_unary_and_up.hpp | 12 +-
sandbox/assign_v2/boost/assign/v2/detail/functor/identity.hpp | 24 +++---
sandbox/assign_v2/boost/assign/v2/detail/functor/new.hpp | 16 ++--
sandbox/assign_v2/boost/assign/v2/detail/keyword/nil.hpp | 2
sandbox/assign_v2/boost/assign/v2/detail/pp/args.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/detail/pp/params.hpp | 2
sandbox/assign_v2/boost/assign/v2/detail/traits/container/forward_to_value.hpp | 4
sandbox/assign_v2/boost/assign/v2/detail/traits/container/fwd.hpp | 24 +++---
sandbox/assign_v2/boost/assign/v2/detail/traits/container/has_push.hpp | 4
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is.hpp | 4
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_array.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_associative.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_fifo.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_lifo.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_map.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_ptr_container.hpp | 2
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_range.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_set.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_sorted.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/traits/container/ptr_to_value.hpp | 114 +++++++++++++++---------------
sandbox/assign_v2/boost/assign/v2/detail/traits/container/ptr_to_value_container.hpp | 2
sandbox/assign_v2/boost/assign/v2/detail/traits/container/static_size.hpp | 20 ++--
sandbox/assign_v2/boost/assign/v2/detail/traits/container/value.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/detail/traits/container/value_container.hpp | 4
sandbox/assign_v2/boost/assign/v2/detail/traits/switch.hpp | 4
sandbox/assign_v2/boost/assign/v2/detail/traits/type/has_value_type.hpp | 2
sandbox/assign_v2/boost/assign/v2/detail/traits/type/meta_convert.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/traits/type/same_remove_cv.hpp | 6
sandbox/assign_v2/boost/assign/v2/detail/traits/type/value.hpp | 2
sandbox/assign_v2/boost/assign/v2/put/container/csv/adapter.hpp | 20 ++--
sandbox/assign_v2/boost/assign/v2/put/container/csv/make.hpp | 16 ++--
sandbox/assign_v2/boost/assign/v2/put/container/functor/adapter.hpp | 42 +++++-----
sandbox/assign_v2/boost/assign/v2/put/container/functor/make.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/put/container/functor/modulo.hpp | 6
sandbox/assign_v2/boost/assign/v2/put/container/range.hpp | 2
sandbox/assign_v2/boost/assign/v2/put/deduce/modifier.hpp | 14 +-
sandbox/assign_v2/boost/assign/v2/put/deduce/modulo.hpp | 26 +++---
sandbox/assign_v2/boost/assign/v2/put/deduce/traits.hpp | 4
sandbox/assign_v2/boost/assign/v2/put/deque/cont.hpp | 20 ++--
sandbox/assign_v2/boost/assign/v2/put/deque/csv.hpp | 18 ++--
sandbox/assign_v2/boost/assign/v2/put/deque/functor.hpp | 12 +-
sandbox/assign_v2/boost/assign/v2/put/ext/iterate.hpp | 12 +-
sandbox/assign_v2/boost/assign/v2/put/ext/lookup.hpp | 4
sandbox/assign_v2/boost/assign/v2/put/ext/repeat.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/put/ext/xxx.hpp | 12 +-
sandbox/assign_v2/boost/assign/v2/put/frame/base.hpp | 6
sandbox/assign_v2/boost/assign/v2/put/frame/crtp.hpp | 146 ++++++++++++++++++++--------------------
sandbox/assign_v2/boost/assign/v2/put/frame/modifier.hpp | 12 +-
sandbox/assign_v2/boost/assign/v2/put/frame/sub.hpp | 44 ++++++------
sandbox/assign_v2/boost/assign/v2/put/modulo/ext.hpp | 34 ++++----
sandbox/assign_v2/boost/assign/v2/put/modulo/fun.hpp | 20 ++--
sandbox/assign_v2/boost/assign/v2/put/modulo/fun_modifier.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/put/modulo/generic.hpp | 4
sandbox/assign_v2/boost/assign/v2/put/modulo/modifier.hpp | 26 +++---
sandbox/assign_v2/boost/assign/v2/put/pipe/csv/forward.hpp | 4
sandbox/assign_v2/boost/assign/v2/put/pipe/csv/generator.hpp | 72 +++++++++---------
sandbox/assign_v2/boost/assign/v2/put/pipe/csv/keyword.hpp | 4
sandbox/assign_v2/boost/assign/v2/put/pipe/csv/operator.hpp | 4
sandbox/assign_v2/boost/assign/v2/put/pipe/csv/rhs.hpp | 30 ++++----
sandbox/assign_v2/boost/assign/v2/put/pipe/csv/size_type.hpp | 2
sandbox/assign_v2/boost/assign/v2/put/pipe/functor/cpp03/forward.hpp | 2
sandbox/assign_v2/boost/assign/v2/put/pipe/functor/cpp0x/forward.hpp | 2
sandbox/assign_v2/boost/assign/v2/put/pipe/functor/operator.hpp | 4
sandbox/assign_v2/boost/assign/v2/put/pipe/functor/rhs.hpp | 62 ++++++++--------
sandbox/assign_v2/boost/assign/v2/put/pipe/functor/size_type.hpp | 2
sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/forward.hpp | 34 ++++----
sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/size_type.hpp | 2
sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/traits.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/put/pipe/range.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/put/std/xxx.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/ref/array/alloc/instant.hpp | 14 +-
sandbox/assign_v2/boost/assign/v2/ref/array/alloc/instant_fwd.hpp | 2
sandbox/assign_v2/boost/assign/v2/ref/array/alloc/lazy.hpp | 22 +++---
sandbox/assign_v2/boost/assign/v2/ref/array/alloc/lazy_fwd.hpp | 2
sandbox/assign_v2/boost/assign/v2/ref/array/csv/make.hpp | 14 +-
sandbox/assign_v2/boost/assign/v2/ref/array/csv/nth_result_of.hpp | 6
sandbox/assign_v2/boost/assign/v2/ref/array/functor/make.hpp | 18 ++--
sandbox/assign_v2/boost/assign/v2/ref/array/functor/nth_result_of.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/ref/array/impl_traits.hpp | 2
sandbox/assign_v2/boost/assign/v2/ref/array/interface.hpp | 40 +++++-----
sandbox/assign_v2/boost/assign/v2/ref/array/size_type.hpp | 2
sandbox/assign_v2/boost/assign/v2/ref/array/tag1.hpp | 4
sandbox/assign_v2/boost/assign/v2/ref/convert_traits/checking.hpp | 22 +++---
sandbox/assign_v2/boost/assign/v2/ref/convert_traits/const.hpp | 12 +-
sandbox/assign_v2/boost/assign/v2/ref/convert_traits/reference.hpp | 4
sandbox/assign_v2/boost/assign/v2/ref/convert_traits/value.hpp | 12 +-
sandbox/assign_v2/boost/assign/v2/ref/list/array/policy.hpp | 58 +++++++-------
sandbox/assign_v2/boost/assign/v2/ref/list/array/rebind.hpp | 22 +++---
sandbox/assign_v2/boost/assign/v2/ref/list/at.hpp | 24 +++---
sandbox/assign_v2/boost/assign/v2/ref/list/container.hpp | 16 ++--
sandbox/assign_v2/boost/assign/v2/ref/list/converter.hpp | 2
sandbox/assign_v2/boost/assign/v2/ref/list/fwd.hpp | 6
sandbox/assign_v2/boost/assign/v2/ref/list/holder/head.hpp | 38 +++++-----
sandbox/assign_v2/boost/assign/v2/ref/list/holder/tail.hpp | 14 +-
sandbox/assign_v2/boost/assign/v2/ref/list/make.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/ref/list/nth_result_of.hpp | 24 +++---
sandbox/assign_v2/boost/assign/v2/ref/list/policy.hpp | 6
sandbox/assign_v2/boost/assign/v2/ref/list/size_type.hpp | 2
sandbox/assign_v2/boost/assign/v2/ref/list_tuple/cpp03/container.hpp | 22 +++---
sandbox/assign_v2/boost/assign/v2/ref/list_tuple/cpp0x/container.hpp | 6
sandbox/assign_v2/boost/assign/v2/ref/list_tuple/extraction.hpp | 20 ++--
sandbox/assign_v2/boost/assign/v2/ref/list_tuple/nth_result_of.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/ref/wrapper/adaptor_get.hpp | 26 +++---
sandbox/assign_v2/boost/assign/v2/ref/wrapper/copy.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/ref/wrapper/cpp0x.hpp | 6
sandbox/assign_v2/boost/assign/v2/ref/wrapper/crtp.hpp | 24 +++---
sandbox/assign_v2/boost/assign/v2/ref/wrapper/framework.hpp | 4
sandbox/assign_v2/boost/assign/v2/ref/wrapper/get.hpp | 16 ++--
sandbox/assign_v2/boost/assign/v2/utility/chain.hpp | 2
sandbox/assign_v2/boost/assign/v2/utility/chain/adaptor.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/utility/chain/check.hpp | 70 +++++++++---------
sandbox/assign_v2/boost/assign/v2/utility/chain/iterator.hpp | 22 +++---
sandbox/assign_v2/boost/assign/v2/utility/chain/pipe.hpp | 4
sandbox/assign_v2/boost/assign/v2/utility/chain/range.hpp | 16 ++--
sandbox/assign_v2/boost/assign/v2/utility/chain/result.hpp | 10 +-
sandbox/assign_v2/boost/assign/v2/utility/chain/short.hpp | 4
sandbox/assign_v2/boost/assign/v2/utility/chain/use_lvalue.hpp | 14 +-
sandbox/assign_v2/boost/assign/v2/utility/convert/check.hpp | 22 +++---
sandbox/assign_v2/boost/assign/v2/utility/convert/converter.hpp | 42 +++++-----
sandbox/assign_v2/boost/assign/v2/utility/convert/deduce.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/utility/convert/dispatch.hpp | 8 +-
sandbox/assign_v2/boost/assign/v2/utility/convert/helper.hpp | 4
sandbox/assign_v2/boost/assign/v2/utility/convert/predicate.hpp | 4
sandbox/assign_v2/boost/assign/v2/utility/convert/tag.hpp | 2
sandbox/assign_v2/libs/assign/v2/src/main.cpp | 18 ++--
sandbox/assign_v2/libs/assign/v2/test/detail/traits/has_push.cpp | 8 +-
sandbox/assign_v2/libs/assign/v2/test/detail/traits/has_value_type.cpp | 14 +-
sandbox/assign_v2/libs/assign/v2/test/other.cpp | 62 ++++++++--------
sandbox/assign_v2/libs/assign/v2/test/put.cpp | 16 ++--
sandbox/assign_v2/libs/assign/v2/test/put/container.cpp | 6
sandbox/assign_v2/libs/assign/v2/test/put/container/csv.cpp | 42 +++++-----
sandbox/assign_v2/libs/assign/v2/test/put/container/functor.cpp | 22 +++---
sandbox/assign_v2/libs/assign/v2/test/put/container/range.cpp | 24 +++---
sandbox/assign_v2/libs/assign/v2/test/put/deduce.cpp | 20 ++--
sandbox/assign_v2/libs/assign/v2/test/put/deque.cpp | 10 +-
sandbox/assign_v2/libs/assign/v2/test/put/deque/csv.cpp | 10 +-
sandbox/assign_v2/libs/assign/v2/test/put/deque/functor.cpp | 4
sandbox/assign_v2/libs/assign/v2/test/put/deque/modulo.cpp | 18 ++--
sandbox/assign_v2/libs/assign/v2/test/put/deque/std.cpp | 12 +-
sandbox/assign_v2/libs/assign/v2/test/put/ext.cpp | 2
sandbox/assign_v2/libs/assign/v2/test/put/ext/functor.cpp | 8 +-
sandbox/assign_v2/libs/assign/v2/test/put/modulo.cpp | 28 +++---
sandbox/assign_v2/libs/assign/v2/test/put/pipe.cpp | 8 +-
sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/container.cpp | 2
sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/ext.cpp | 14 +-
sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/fun.cpp | 12 +-
sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/rhs.cpp | 8 +-
sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/std.cpp | 10 +-
sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/container.cpp | 14 +-
sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/forward.cpp | 36 ++++----
sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/fun.cpp | 12 +-
sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.cpp | 60 ++++++++--------
sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/std.cpp | 10 +-
sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.cpp | 2
sandbox/assign_v2/libs/assign/v2/test/put/pipe/range.cpp | 28 +++---
sandbox/assign_v2/libs/assign/v2/test/put/ptr.cpp | 4
sandbox/assign_v2/libs/assign/v2/test/put/ptr/functor.cpp | 12 +-
sandbox/assign_v2/libs/assign/v2/test/put/std.cpp | 2
sandbox/assign_v2/libs/assign/v2/test/ref/array.cpp | 4
sandbox/assign_v2/libs/assign/v2/test/ref/array/csv.cpp | 36 ++++----
sandbox/assign_v2/libs/assign/v2/test/ref/array/functor.cpp | 36 ++++----
sandbox/assign_v2/libs/assign/v2/test/ref/convert_traits.cpp | 8 +-
sandbox/assign_v2/libs/assign/v2/test/ref/list.cpp | 48 ++++++------
sandbox/assign_v2/libs/assign/v2/test/ref/list_tuple.cpp | 10 +-
sandbox/assign_v2/libs/assign/v2/test/ref/wrapper.cpp | 10 +-
sandbox/assign_v2/libs/assign/v2/test/utility/chain.cpp | 18 ++--
sandbox/assign_v2/libs/assign/v2/test/utility/convert.cpp | 12 +-
178 files changed, 1357 insertions(+), 1357 deletions(-)
Modified: sandbox/assign_v2/boost/assign/v2/detail/check/equal_container.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/check/equal_container.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/check/equal_container.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -27,14 +27,14 @@
{
typedef typename v2::check_aux::deduce_equal_container_tag<C>::type tag;
v2::checking::equal( tag(), cont, r );
- }
+ }
template<typename C, typename R>
void equal_container(C const& cont, R const& r)
{
typedef typename v2::check_aux::deduce_equal_container_tag<C>::type tag;
v2::checking::equal( tag(), cont, r );
- }
+ }
}// check_aux
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/deduce.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/deduce.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/deduce.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -64,7 +64,7 @@
template<>
struct case_<switch_tag::check_container, 4> :
switch_aux::helper<
- container_tag::range
+ container_tag::range
>{};
}// switch_aux
@@ -72,8 +72,8 @@
template<typename T>
struct deduce_equal_container_tag : switch_aux::result<
- v2::switch_tag::check_container,
- T
+ v2::switch_tag::check_container,
+ T
>
{};
Modified: sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/fifo.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/fifo.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/fifo.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,12 +21,12 @@
template<typename C, typename R>
void equal_container(v2::container_tag::fifo, C const & cont, R const& r)
{
- BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_SIZE
- BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_ELEM_AT
+ BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_SIZE
+ BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_ELEM_AT
C cpy = cont;
for(size_type i = 0; i < n1; i++)
{
- BOOST_ASSIGN_V2_CHECK( cpy.front() == elem_at( i ) ); cpy.pop();
+ BOOST_ASSIGN_V2_CHECK( cpy.front() == elem_at( i ) ); cpy.pop();
}
BOOST_ASSIGN_V2_CHECK( cpy.empty() ); // consistency check
}
Modified: sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/lifo.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/lifo.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/lifo.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,13 +21,13 @@
template<typename C, typename R>
void equal_container(v2::container_tag::lifo, C const & cont, R const& r)
{
- BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_SIZE
- BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_ELEM_AT
+ BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_SIZE
+ BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_ELEM_AT
C cpy = cont;
for(size_type i = 0; i < n1; i++)
{
- BOOST_ASSIGN_V2_CHECK(
- cpy.top() == elem_at( n1 - ( 1 + i ) )
+ BOOST_ASSIGN_V2_CHECK(
+ cpy.top() == elem_at( n1 - ( 1 + i ) )
); cpy.pop();
}
BOOST_ASSIGN_V2_CHECK( cpy.empty() ); // consistency check
Modified: sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/pp.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/pp.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/pp.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -13,7 +13,7 @@
#include <boost/range/size.hpp>
#include <boost/range/size_type.hpp>
#define BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_SIZE\
- typedef boost::range_size<R>::type size_type;\
+ typedef boost::range_size<R>::type size_type;\
size_type n1 = cont.size();\
size_type n2 = boost::range_size( r );\
BOOST_ASSIGN_V2_CHECK( n2 >= n1 );\
@@ -21,8 +21,8 @@
#include <boost/range/iterator_range.hpp>
#define BOOST_ASSIGN_V2_CHECK_AUX_CONTAINER_ELEM_AT\
- typedef typename boost::iterator_range<\
- typename boost::range_iterator<R const>::type\
+ typedef typename boost::iterator_range<\
+ typename boost::range_iterator<R const>::type\
>::type elem_at_;\
elem_at_ elem_at = boost::make_iterator_range( r );\
/**/
Modified: sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/sorted.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/sorted.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/check/equal_container/sorted.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -20,7 +20,7 @@
template<typename C, typename R>
void equal_container(v2::container_tag::sorted, C const & cont, R const& r)
{
- typedef v2::container_tag::range tag_;
+ typedef v2::container_tag::range tag_;
// needed in case r is not sorted :
C benchmark( boost::begin( r ), boost::end( r ) );
equal(tag_, cont, benchmark );
Modified: sandbox/assign_v2/boost/assign/v2/detail/check/equal_ref.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/check/equal_ref.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/check/equal_ref.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,13 +16,13 @@
namespace v2{
namespace check_aux{
- struct equal_ref{
+ struct equal_ref{
- equal_ref(){}
- template<typename T, typename U>
- void operator()(T const& t, U const& u)const
+ equal_ref(){}
+ template<typename T, typename U>
+ void operator()(T const& t, U const& u)const
{
- BOOST_ASSIGN_V2_CHECK( &t == &u );
+ BOOST_ASSIGN_V2_CHECK( &t == &u );
}
};
Modified: sandbox/assign_v2/boost/assign/v2/detail/check/equal_val.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/check/equal_val.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/check/equal_val.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,13 +16,13 @@
namespace v2{
namespace check_aux{
- struct equal_val{
+ struct equal_val{
- equal_val(){}
- template<typename T, typename U>
- void operator()(T const& t, U const& u)const
+ equal_val(){}
+ template<typename T, typename U>
+ void operator()(T const& t, U const& u)const
{
- BOOST_ASSIGN_V2_CHECK( t == u );
+ BOOST_ASSIGN_V2_CHECK( t == u );
}
};
Modified: sandbox/assign_v2/boost/assign/v2/detail/config/check.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/config/check.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/config/check.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -13,5 +13,5 @@
#endif
// In the test suite, use, instead:
-// #include <boost/test/test_tools.hpp>
-// #define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
+// #include <boost/test/test_tools.hpp>
+// #define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
Modified: sandbox/assign_v2/boost/assign/v2/detail/config/limit_arity.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/config/limit_arity.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/config/limit_arity.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,9 +25,9 @@
// n = BOOST_ASSIGN_V2_LIMIT_ARITY
// Overload | Arity
// -------------------------------------
-// f() | 0
-// f(x[0]) | 1
-// f(x[0], x[1]) | 2
+// f() | 0
+// f(x[0]) | 1
+// f(x[0], x[1]) | 2
// ...
-// f(x[0], ...., x[n-1]) | n
+// f(x[0], ...., x[n-1]) | n
Modified: sandbox/assign_v2/boost/assign/v2/detail/functor/constructor.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/functor/constructor.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/functor/constructor.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -35,11 +35,11 @@
// do nothing
#else
: public functor_aux::crtp_unary_and_up<
- functor_aux::constructor<T>,
+ functor_aux::constructor<T>,
::boost::mpl::always<T>
>
#endif
- {
+ {
typedef functor_aux::constructor<T> this_;
public:
@@ -70,7 +70,7 @@
} \
/**/
BOOST_PP_REPEAT_FROM_TO(
- 1,
+ 1,
BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_ARITY),
BOOST_ASSIGN_V2_MACRO,
~
@@ -78,12 +78,12 @@
#undef BOOST_ASSIGN_V2_MACRO
#endif
- };
+ };
template<typename V>
struct deduce_constructor
{
- typedef typename container_traits::value<V>::type value_;
+ typedef typename container_traits::value<V>::type value_;
typedef functor_aux::constructor<value_> type;
static type call(){ return functor_aux::constructor<value_>(); }
};
@@ -104,8 +104,8 @@
typename result_of::constructor<T>::type
constructor()
{
- typedef typename result_of::constructor<T>::type result_;
- return result_();
+ typedef typename result_of::constructor<T>::type result_;
+ return result_();
}
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/detail/functor/crtp_unary_and_up.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/functor/crtp_unary_and_up.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/functor/crtp_unary_and_up.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -27,13 +27,13 @@
// arguments, while allowing within a certain limit, any mixture of
// lvalue and rvalues. Specifically,
// let
-// m = BOOST_ASSIGN_V2_LIMIT_LVALUE_CONST_ARITY
-// n = BOOST_ASSIGN_V2_LIMIT_ARITY
+// m = BOOST_ASSIGN_V2_LIMIT_LVALUE_CONST_ARITY
+// n = BOOST_ASSIGN_V2_LIMIT_ARITY
//
// Given a metafunction class, F, and a derived class, D, that defines
// template<typename T0, ..., typename Tk>
// typename apply1<F, mpl::vector<T0,...,Tk> >::type
-// impl(T0& , ..., Tk&)const;
+// impl(T0& , ..., Tk&)const;
// for k = 0, ..., n-1, crtp<F,D> defines, under C++03, a set of overloaded
// operator()'s, each forwarding to impl(), for each combination of lvalues and
// const arguments for k = 0, ..., m-1, and either only lvalues or only const
@@ -102,12 +102,12 @@
#define BOOST_ASSIGN_V2_MACRO2(z, n, data) BOOST_PP_SEQ_FOR_EACH_PRODUCT(\
- BOOST_ASSIGN_V2_MACRO1, \
+ BOOST_ASSIGN_V2_MACRO1, \
BOOST_PP_SEQ_FIRST_N(BOOST_PP_INC(n), BOOST_ASSIGN_V2_SEQ)\
) \
/**/
BOOST_PP_REPEAT(
- BOOST_ASSIGN_V2_LIMIT_LVALUE_CONST_ARITY,
+ BOOST_ASSIGN_V2_LIMIT_LVALUE_CONST_ARITY,
BOOST_ASSIGN_V2_MACRO2,
~
)
@@ -149,7 +149,7 @@
#endif // #if BOOST_ASSIGN_V2_ENABLE_CPP0X
- };
+ };
}// functor_aux
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/detail/functor/identity.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/functor/identity.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/functor/identity.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -33,19 +33,19 @@
struct result_of_identity{
template<typename V>
- struct is_ok : ::boost::mpl::equal_to<
- boost::mpl::int_<1>,
- boost::mpl::size<V>
- >{};
+ struct is_ok : ::boost::mpl::equal_to<
+ boost::mpl::int_<1>,
+ boost::mpl::size<V>
+ >{};
- template<typename V>
+ template<typename V>
struct enable
{
- typedef typename ::boost::mpl::at_c<V, 0>::type t_;
+ typedef typename ::boost::mpl::at_c<V, 0>::type t_;
typedef typename boost::add_reference<t_>::type type;
};
- template<typename V>
+ template<typename V>
struct disable{};
template<typename V>
@@ -63,26 +63,26 @@
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
// do nothing
#else
- : functor_aux::crtp_unary_and_up<
+ : functor_aux::crtp_unary_and_up<
functor_aux::identity,
functor_aux::result_of_identity
>
#endif
{
- identity(){}
+ identity(){}
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
template<typename T>
T&& operator()(T&& t)const{ return t; }
#else
- template<typename T> T& impl(T& t)const{ return t; }
- template<typename T> T const& impl(T const& t)const{ return t; }
+ template<typename T> T& impl(T& t)const{ return t; }
+ template<typename T> T const& impl(T const& t)const{ return t; }
#endif
};
}// functor_aux
namespace{
- functor_aux::identity const _identity = functor_aux::identity();
+ functor_aux::identity const _identity = functor_aux::identity();
}
}// v2
}// assigns
Modified: sandbox/assign_v2/boost/assign/v2/detail/functor/new.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/functor/new.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/functor/new.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -35,15 +35,15 @@
// do nothing
#else
: public functor_aux::crtp_unary_and_up<
- functor_aux::new_<T>,
+ functor_aux::new_<T>,
::boost::mpl::always<T*>
>
#endif
{
- typedef T* ptr_;
+ typedef T* ptr_;
typedef functor_aux::new_<T> this_;
- public:
+ public:
typedef ptr_ result_type;
@@ -72,7 +72,7 @@
} \
/**/
BOOST_PP_REPEAT_FROM_TO(
- 1,
+ 1,
BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_ARITY),
BOOST_ASSIGN_V2_MACRO,
~
@@ -80,12 +80,12 @@
#undef BOOST_ASSIGN_V2_MACRO
#endif
- };
+ };
template<typename V>
struct deduce_new_
{
- typedef typename container_traits::value<V>::type value_;
+ typedef typename container_traits::value<V>::type value_;
typedef functor_aux::new_<value_> type;
static type call(){ return functor_aux::new_<value_>(); }
};
@@ -105,8 +105,8 @@
typename result_of::new_<T>::type
new_()
{
- typedef typename result_of::new_<T>::type result_;
- return result_();
+ typedef typename result_of::new_<T>::type result_;
+ return result_();
}
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/detail/keyword/nil.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/keyword/nil.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/keyword/nil.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,7 +16,7 @@
namespace keyword_aux{ struct nil{}; }
namespace{
const keyword_aux::nil _nil = keyword_aux::nil();
-}
+}
}// v2
}// assign
}// boost
Modified: sandbox/assign_v2/boost/assign/v2/detail/pp/args.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/pp/args.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/pp/args.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -14,14 +14,14 @@
#include <boost/preprocessor/seq/for_each_i.hpp>
#include <boost/preprocessor/seq/size.hpp>
#define BOOST_ASSIGN_V2_decl_args_iter(r, data, i, U) \
- BOOST_PP_COMMA_IF(i) \
- U & \
+ BOOST_PP_COMMA_IF(i) \
+ U & \
BOOST_PP_CAT(data, i) \
/**/
#define BOOST_ASSIGN_V2_decl_args(SeqU) \
- BOOST_PP_SEQ_FOR_EACH_I(BOOST_ASSIGN_V2_decl_args_iter, _, SeqU) \
+ BOOST_PP_SEQ_FOR_EACH_I(BOOST_ASSIGN_V2_decl_args_iter, _, SeqU) \
/**/
#define BOOST_ASSIGN_V2_args(SeqU) \
- BOOST_PP_ENUM_PARAMS(BOOST_PP_SEQ_SIZE(SeqU), _)
+ BOOST_PP_ENUM_PARAMS(BOOST_PP_SEQ_SIZE(SeqU), _)
/**/
#endif
Modified: sandbox/assign_v2/boost/assign/v2/detail/pp/params.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/pp/params.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/pp/params.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -11,7 +11,7 @@
#include <boost/preprocessor/seq/size.hpp>
#include <boost/preprocessor/seq/enum.hpp>
#define BOOST_ASSIGN_V2_decl_params(SeqU) \
- BOOST_PP_ENUM_PARAMS(BOOST_PP_SEQ_SIZE(SeqU), typename T)\
+ BOOST_PP_ENUM_PARAMS(BOOST_PP_SEQ_SIZE(SeqU), typename T)\
/**/
#define BOOST_ASSIGN_V2_params(SeqU) BOOST_PP_SEQ_ENUM(SeqU)
#endif
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/forward_to_value.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/forward_to_value.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/forward_to_value.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,9 +16,9 @@
namespace v2{
namespace container_traits{
- template<template<typename T> class F,typename V>
+ template<template<typename T> class F,typename V>
struct forward_to_value: F<
- typename value_container<V>::type
+ typename value_container<V>::type
>{};
}// container_traits
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/fwd.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/fwd.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/fwd.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -13,34 +13,34 @@
namespace std{
- // www.sgi.com/tech/stl/Deque.html
- template<typename T,typename A> class deque;
+ // www.sgi.com/tech/stl/Deque.html
+ template<typename T,typename A> class deque;
- // http://www.sgi.com/tech/stl/List.html
- template<typename T,typename A> class list;
+ // http://www.sgi.com/tech/stl/List.html
+ template<typename T,typename A> class list;
- // http://www.sgi.com/tech/stl/Map.html
- template<typename K,typename T,typename C,typename A> class map;
+ // http://www.sgi.com/tech/stl/Map.html
+ template<typename K,typename T,typename C,typename A> class map;
// http://www.sgi.com/tech/stl/queue.html
- template<typename T,typename S> class queue;
+ template<typename T,typename S> class queue;
// http://www.sgi.com/tech/stl/set.html
- template<typename T,typename C,typename A> class set;
+ template<typename T,typename C,typename A> class set;
// http://www.sgi.com/tech/stl/stack.html
- template<typename T,typename S> class stack;
+ template<typename T,typename S> class stack;
// http://www.sgi.com/tech/stl/Vector.html
- template<typename T,typename A> class vector;
+ template<typename T,typename A> class vector;
}// std
namespace boost{
-
+
// http://www.boost.org/doc/libs/release/doc/html/array.html
template<typename T, std::size_t size> class array;
- // http://www.boost.org/doc/libs/release/libs/circular_buffer/index.html
+ // http://www.boost.org/doc/libs/release/libs/circular_buffer/index.html
template<typename T, typename Alloc> class circular_buffer;
}// boost
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/has_push.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/has_push.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/has_push.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,7 +21,7 @@
namespace container_traits{
template<typename V,typename T
- = typename container_traits::value<V>::type>
+ = typename container_traits::value<V>::type>
struct has_push{
typedef typename boost::type_traits::yes_type yes_;
@@ -41,7 +41,7 @@
value = sizeof( test((V*)0) ) == sizeof( yes_ )
);
- typedef ::boost::mpl::bool_<value> type;
+ typedef ::boost::mpl::bool_<value> type;
};
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -17,8 +17,8 @@
namespace container_traits{\
template<typename V>\
struct BOOST_PP_CAT(is_,name) : forward_to_value<\
- container_traits_aux::BOOST_PP_CAT(is_,name),\
- typename boost::remove_cv<V>::type\
+ container_traits_aux::BOOST_PP_CAT(is_,name),\
+ typename boost::remove_cv<V>::type\
>{};\
}\
/**/
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_array.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_array.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_array.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,18 +21,18 @@
namespace assign{
namespace v2{
namespace container_tag{
- struct array{};
+ struct array{};
}// container_tag
namespace container_traits_aux{
- template<typename V> struct is_array : ::boost::mpl::false_{};
- template<typename T, std::size_t sz> struct is_array<
- boost::array<T, sz>
+ template<typename V> struct is_array : ::boost::mpl::false_{};
+ template<typename T, std::size_t sz> struct is_array<
+ boost::array<T, sz>
> : ::boost::mpl::true_{};
}// containert_type_aux
- BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(array)
+ BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(array)
}// v2
}// assign
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_associative.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_associative.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_associative.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -17,13 +17,13 @@
namespace assign{
namespace v2{
namespace container_tag{
- struct associative{};
+ struct associative{};
}// container_tag
namespace container_traits{
- template<typename V>
+ template<typename V>
struct is_associative : ::boost::mpl::or_<
- container_traits::is_set<V>,
+ container_traits::is_set<V>,
container_traits::is_map<V>
>{};
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_fifo.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_fifo.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_fifo.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,11 +15,11 @@
namespace assign{
namespace v2{
namespace container_tag{
- struct fifo{};
+ struct fifo{};
}// container_tag
namespace container_traits_aux{
- template<typename V>
+ template<typename V>
struct is_fifo : ::boost::mpl::false_{};
template<typename T,typename A>
@@ -28,7 +28,7 @@
}// container_traits_aux
- BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(fifo)
+ BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(fifo)
}// v2
}// assign
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_lifo.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_lifo.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_lifo.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,11 +15,11 @@
namespace assign{
namespace v2{
namespace container_tag{
- struct lifo{};
+ struct lifo{};
}// container_tag
namespace container_traits_aux{
- template<typename V>
+ template<typename V>
struct is_lifo : ::boost::mpl::false_{};
template<typename T,typename A>
@@ -28,7 +28,7 @@
}// container_traits_aux
- BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(lifo)
+ BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(lifo)
}// v2
}// assign
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_map.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_map.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_map.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,22 +15,22 @@
namespace assign{
namespace v2{
namespace container_tag{
- struct map{};
+ struct map{};
}// container_tag
namespace container_traits_aux{
- template<typename V>
+ template<typename V>
struct is_map : ::boost::mpl::false_{};
- template<typename K,typename D,typename C,typename A>
+ template<typename K,typename D,typename C,typename A>
struct is_map<
- std::map<K,D,C,A>
+ std::map<K,D,C,A>
> : ::boost::mpl::true_{};
}// container_traits_aux
- BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(map)
+ BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(map)
}// v2
}// assign
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_ptr_container.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_ptr_container.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_ptr_container.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,7 +18,7 @@
namespace v2{
namespace container_traits{
- template<typename V>
+ template<typename V>
struct is_ptr_container : ptr_to_value<V>::is_applicable{};
}// container_traits
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_range.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_range.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_range.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,13 +15,13 @@
namespace assign{
namespace v2{
namespace container_tag{
- struct range{};
+ struct range{};
}// container_tag
namespace container_traits{
- template<typename V>
+ template<typename V>
struct is_range{
- // purposedly left blank.
+ // purposedly left blank.
};
}// container_traits
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_set.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_set.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_set.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,22 +15,22 @@
namespace assign{
namespace v2{
namespace container_tag{
- struct set{};
+ struct set{};
}// container_tag
namespace container_traits_aux{
- template<typename V>
+ template<typename V>
struct is_set : ::boost::mpl::false_{};
- template<typename K,typename C,typename A>
+ template<typename K,typename C,typename A>
struct is_set<
- std::set<K,C,A>
+ std::set<K,C,A>
> : ::boost::mpl::true_{};
}// container_traits_aux
- BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(set)
+ BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(set)
}// v2
}// assign
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_sorted.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_sorted.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/is_sorted.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,11 +15,11 @@
namespace assign{
namespace v2{
namespace container_tag{
- struct sorted{};
+ struct sorted{};
}// container_tag
namespace container_traits_aux{
- template<typename V>
+ template<typename V>
struct is_sorted : ::boost::mpl::false_{};
template<typename T,typename C,typename A>
@@ -31,7 +31,7 @@
}// container_traits_aux
- BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(sorted)
+ BOOST_ASSIGN_V2_TRAITS_CONTAINER_IS(sorted)
}// v2
}// assign
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/ptr_to_value.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/ptr_to_value.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/ptr_to_value.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,96 +22,96 @@
namespace v2{
namespace container_traits{
- template<typename V>
+ template<typename V>
struct ptr_to_value{
- struct is_applicable : ::boost::mpl::false_{};
+ struct is_applicable : ::boost::mpl::false_{};
};
namespace ptr_to_value_aux{
- template<typename A,typename T> struct allocator{};
+ template<typename A,typename T> struct allocator{};
template<typename T>
struct allocator<std::allocator<void*>, T>
{
- typedef std::allocator<T> type;
+ typedef std::allocator<T> type;
};
- template<typename V>
+ template<typename V>
struct common
{
- struct is_applicable : ::boost::mpl::true_{};
+ struct is_applicable : ::boost::mpl::true_{};
- typedef typename boost::remove_reference<
- typename V::reference
+ typedef typename boost::remove_reference<
+ typename V::reference
>::type value_type;
typedef typename ptr_to_value_aux::allocator<
- typename V::allocator_type,
+ typename V::allocator_type,
value_type
>::type allocator_type;
};
- template<typename V,template<typename, std::size_t> class F>
- struct array_like{
+ template<typename V,template<typename, std::size_t> class F>
+ struct array_like{
- // there is no allocator, hence can't derive from common<V>
+ // there is no allocator, hence can't derive from common<V>
- struct is_applicable : ::boost::mpl::true_{};
+ struct is_applicable : ::boost::mpl::true_{};
- typedef typename boost::remove_reference<
- typename V::reference
+ typedef typename boost::remove_reference<
+ typename V::reference
>::type value_type;
-
- typedef F<
- typename array_like::value_type,
+
+ typedef F<
+ typename array_like::value_type,
container_traits::static_size<V>::value
> container_type;
};
- template<typename V,template<typename,typename> class F>
- struct seq_like : ptr_to_value_aux::common<V>{
+ template<typename V,template<typename,typename> class F>
+ struct seq_like : ptr_to_value_aux::common<V>{
- typedef F<
- typename seq_like::value_type,
+ typedef F<
+ typename seq_like::value_type,
typename seq_like::allocator_type
> container_type;
};
- template<typename V,template<typename,typename,typename,typename> class F>
- struct map_like : ptr_to_value_aux::common<V>{
+ template<typename V,template<typename,typename,typename,typename> class F>
+ struct map_like : ptr_to_value_aux::common<V>{
- typedef F<
- typename V::key_type,
- typename map_like::value_type,
+ typedef F<
+ typename V::key_type,
+ typename map_like::value_type,
typename V::key_compare,
typename map_like::allocator_type
> container_type;
};
- template<typename V,template<typename,typename,typename> class F>
- struct set_like : ptr_to_value_aux::common<V>{
+ template<typename V,template<typename,typename,typename> class F>
+ struct set_like : ptr_to_value_aux::common<V>{
- typedef F<
- typename V::key_type,
+ typedef F<
+ typename V::key_type,
typename V::key_compare,
typename set_like::allocator_type
> container_type;
};
- template<typename V,
- template<typename,typename,typename,typename,typename> class F>
+ template<typename V,
+ template<typename,typename,typename,typename,typename> class F>
class unordered_map_like : ptr_to_value_aux::common<V>{
- typedef F<
- typename V::key_type,
+ typedef F<
+ typename V::key_type,
typename unordered_map_like::value_type,
typename V::hasher,
typename V::key_equal,
@@ -120,12 +120,12 @@
};
- template<typename V,
- template<typename,typename,typename,typename> class F>
+ template<typename V,
+ template<typename,typename,typename,typename> class F>
class unordered_set_like : ptr_to_value_aux::common<V>{
- typedef F<
- typename V::key_type,
+ typedef F<
+ typename V::key_type,
typename V::hasher,
typename V::key_equal,
typename unordered_set_like::allocator_type
@@ -137,54 +137,54 @@
}// ptr_to_value_aux
- // Array
- template<
- typename T,
+ // Array
+ template<
+ typename T,
std::size_t N,
typename A
>
struct ptr_to_value<
- boost::ptr_array<T,N,A>
+ boost::ptr_array<T,N,A>
> : ptr_to_value_aux::array_like<
- boost::ptr_array<T,N,A>,
+ boost::ptr_array<T,N,A>,
boost::array
>{};
- // Sequence
+ // Sequence
- template<
- typename T,
+ template<
+ typename T,
typename C,
typename A
>
struct ptr_to_value<
- boost::ptr_deque<T,C,A>
+ boost::ptr_deque<T,C,A>
> : ptr_to_value_aux::seq_like<
- boost::ptr_deque<T,C,A>,
+ boost::ptr_deque<T,C,A>,
std::deque
>{};
- template<
- typename T,
+ template<
+ typename T,
typename C,
typename A
>
struct ptr_to_value<
- boost::ptr_list<T,C,A>
+ boost::ptr_list<T,C,A>
> : ptr_to_value_aux::seq_like<
- boost::ptr_list<T,C,A>,
+ boost::ptr_list<T,C,A>,
std::list
>{};
- template<
- typename T,
+ template<
+ typename T,
typename C,
typename A
>
struct ptr_to_value<
- boost::ptr_vector<T,C,A>
+ boost::ptr_vector<T,C,A>
> : ptr_to_value_aux::seq_like<
- boost::ptr_vector<T,C,A>,
+ boost::ptr_vector<T,C,A>,
std::vector
>{};
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/ptr_to_value_container.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/ptr_to_value_container.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/ptr_to_value_container.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,7 +18,7 @@
template<typename V>
struct ptr_to_value_container{
- typedef typename ptr_to_value<V>::container_type type;
+ typedef typename ptr_to_value<V>::container_type type;
};
}// container_traits
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/static_size.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/static_size.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/static_size.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,25 +18,25 @@
namespace v2{
namespace container_traits{
- template<typename V>
+ template<typename V>
struct static_size{
- // Needed as a meta-function (indirection) bec. ptr_array
+ // Needed as a meta-function (indirection) bec. ptr_array
// does not expose static_size.
};
- template<typename T,std::size_t N>
+ template<typename T,std::size_t N>
struct static_size< boost::array<T,N> >
- : ::boost::mpl::size_t<
- boost::array<T,N>::static_size
- >{};
+ : ::boost::mpl::size_t<
+ boost::array<T,N>::static_size
+ >{};
- template<typename T,std::size_t N,typename C>
+ template<typename T,std::size_t N,typename C>
struct static_size< boost::ptr_array<T, N, C> >
- : ::boost::mpl::size_t<
- N
- >{};
+ : ::boost::mpl::size_t<
+ N
+ >{};
}// container_traits
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/value.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/value.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/value.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,15 +21,15 @@
namespace container_traits
{
- // TODO
+ // TODO
// maybe this should be
- // remove_reference<V::reference>::type
+ // remove_reference<V::reference>::type
// or
- // range_value<V>, is available.
+ // range_value<V>, is available.
// Think about ptr_container in making this change.
template<typename V>
struct value : container_traits::forward_to_value<
- type_traits::value,
+ type_traits::value,
V
>{};
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/container/value_container.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/container/value_container.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/container/value_container.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -19,10 +19,10 @@
namespace v2{
namespace container_traits{
- template<typename V>
+ template<typename V>
struct value_container : ::boost::mpl::eval_if<
is_ptr_container<V>,
- ptr_to_value_container<V>,
+ ptr_to_value_container<V>,
::boost::mpl::identity<V>
>{};
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/switch.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/switch.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/switch.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,7 +21,7 @@
namespace v2{
namespace switch_tag{
- // Each tag in this namespace identifies a switch statement.
+ // Each tag in this namespace identifies a switch statement.
}//switch_tag
namespace switch_aux{
@@ -39,7 +39,7 @@
typedef Tag tag;
template<typename T> struct apply : F<T>
{
- // Is Tag compatible with T? Answer : F<T>::value.
+ // Is Tag compatible with T? Answer : F<T>::value.
};
};
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/type/has_value_type.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/type/has_value_type.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/type/has_value_type.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -33,7 +33,7 @@
bool,
value = sizeof( test((T*)0) ) == sizeof( yes_ )
);
- typedef ::boost::mpl::bool_<value> type;
+ typedef ::boost::mpl::bool_<value> type;
};
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/type/meta_convert.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/type/meta_convert.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/type/meta_convert.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -14,7 +14,7 @@
#include <boost/assign/v2/ref/convert_traits/reference.hpp>
namespace boost{
- struct boost::use_default;
+ struct boost::use_default;
namespace assign{
namespace v2{
namespace type_traits{
@@ -26,9 +26,9 @@
// struct apply : ref::convert_traits::result<T1, T2>{};
struct apply : ref::convert_traits::reference<T1, T2>{};
- };
+ };
- // Specialize on Tag as needed.
+ // Specialize on Tag as needed.
}// type_traits
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/type/same_remove_cv.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/type/same_remove_cv.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/type/same_remove_cv.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -17,9 +17,9 @@
namespace v2{
namespace type_traits{
- template<typename T,typename U>
- struct same_remove_cv : boost::is_same<
- typename boost::remove_cv<T>::type,
+ template<typename T,typename U>
+ struct same_remove_cv : boost::is_same<
+ typename boost::remove_cv<T>::type,
typename boost::remove_cv<U>::type
>{};
Modified: sandbox/assign_v2/boost/assign/v2/detail/traits/type/value.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/traits/type/value.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/traits/type/value.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -19,7 +19,7 @@
template<typename V>
struct value_impl : ::boost::mpl::identity<
- typename V::value_type
+ typename V::value_type
>{};
template<typename V>
Modified: sandbox/assign_v2/boost/assign/v2/put/container/csv/adapter.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/container/csv/adapter.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/container/csv/adapter.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -27,19 +27,19 @@
template<typename C>
class adapter
- : protected ref::copy_wrapper<C>::type
+ : protected ref::copy_wrapper<C>::type
{
- protected:
+ protected:
- typedef typename ref::copy_wrapper<C>::type super1_t;
+ typedef typename ref::copy_wrapper<C>::type super1_t;
- typedef typename v2::container_traits::value<C>::type value_type;
+ typedef typename v2::container_traits::value<C>::type value_type;
- public:
+ public:
- adapter(){} // TODO remove?
- explicit adapter( C& v ) : super1_t( v ) {}
+ adapter(){} // TODO remove?
+ explicit adapter( C& v ) : super1_t( v ) {}
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
@@ -78,7 +78,7 @@
}\
/**/
BOOST_PP_REPEAT_FROM_TO(
- 1,
+ 1,
BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY),
BOOST_ASSIGN_V2_MACRO2,
~
@@ -86,8 +86,8 @@
#undef BOOST_ASSIGN_V2_MACRO1
#undef BOOST_ASSIGN_V2_MACRO2
#endif
- C& container()const{
- return static_cast<super1_t const&>(*this).get();
+ C& container()const{
+ return static_cast<super1_t const&>(*this).get();
}
};
Modified: sandbox/assign_v2/boost/assign/v2/put/container/csv/make.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/container/csv/make.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/container/csv/make.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -26,20 +26,20 @@
namespace v2{
namespace result_of{
- template<typename C>
+ template<typename C>
struct csv_put
{
- typedef csv_put_aux::adapter<C> type;
- };
+ typedef csv_put_aux::adapter<C> type;
+ };
}// result_of
- template<typename C>
- typename result_of::csv_put<C>::type
- csv_put( C& cont )
+ template<typename C>
+ typename result_of::csv_put<C>::type
+ csv_put( C& cont )
{
- typedef typename result_of::csv_put<C>::type result_;
- return result_( cont );
+ typedef typename result_of::csv_put<C>::type result_;
+ return result_( cont );
}
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/put/container/functor/adapter.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/container/functor/adapter.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/container/functor/adapter.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,41 +21,41 @@
template<typename C,typename F, typename Tag>
class adapter
- : protected ref::wrapper< ref::assign_tag::copy, C >
+ : protected ref::wrapper< ref::assign_tag::copy, C >
, public put_aux::crtp< C, F, Tag, adapter<C, F, Tag> >
{
- typedef put_aux::crtp< C, F, Tag, adapter > super2_t;
+ typedef put_aux::crtp< C, F, Tag, adapter > super2_t;
- public:
+ public:
- typedef typename super2_t::result_type result_type;
+ typedef typename super2_t::result_type result_type;
- protected:
+ protected:
- typedef put_aux::modifier<Tag> modifier_;
- typedef ref::assign_tag::copy assign_tag_;
- typedef ref::wrapper<assign_tag_,C> super1_t;
+ typedef put_aux::modifier<Tag> modifier_;
+ typedef ref::assign_tag::copy assign_tag_;
+ typedef ref::wrapper<assign_tag_,C> super1_t;
- public:
+ public:
- adapter(){}
- explicit adapter( C& v ) : super1_t( v ) {}
- explicit adapter( C& v, F const& f )
- : super1_t( v ), super2_t( f )
+ adapter(){}
+ explicit adapter( C& v ) : super1_t( v ) {}
+ explicit adapter( C& v, F const& f )
+ : super1_t( v ), super2_t( f )
{
- // This constructor is required by crtp
+ // This constructor is required by crtp
// when Tag or F is modified.
- }
+ }
- explicit adapter( C& v, F const& f, modifier_ const& m )
- : super1_t( v ), super2_t( f, m )
+ explicit adapter( C& v, F const& f, modifier_ const& m )
+ : super1_t( v ), super2_t( f, m )
{
- // This constructor is required by crtp
+ // This constructor is required by crtp
// when Tag or F is modified.
- }
+ }
- C& container()const{
- return static_cast<super1_t const&>(*this).get();
+ C& container()const{
+ return static_cast<super1_t const&>(*this).get();
}
};
Modified: sandbox/assign_v2/boost/assign/v2/put/container/functor/make.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/container/functor/make.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/container/functor/make.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,7 +18,7 @@
namespace v2{
namespace result_of{
- template<typename C>
+ template<typename C>
struct put
{
typedef v2::put_traits<C> traits_;
@@ -29,11 +29,11 @@
}// result_of
- template<typename C>
+ template<typename C>
typename result_of::put<C>::type
- put( C& v )
+ put( C& v )
{
- typedef typename result_of::put<C>::type result_;
+ typedef typename result_of::put<C>::type result_;
return result_( v );
}
Modified: sandbox/assign_v2/boost/assign/v2/put/container/functor/modulo.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/container/functor/modulo.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/container/functor/modulo.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -17,18 +17,18 @@
namespace assign{
namespace v2{
namespace result_of_modulo{
-
+
template<typename C,typename F, typename Tag>
struct fun< put_aux::adapter<C, F, Tag> >
{
- template<typename F1>
+ template<typename F1>
struct apply{ typedef put_aux::adapter<C, F1, Tag> type; };
};
template<typename C, typename F, typename Tag>
struct modifier< put_aux::adapter<C, F, Tag> >
{
- template<typename NewTag>
+ template<typename NewTag>
struct apply{ typedef put_aux::adapter<C, F, NewTag> type; };
};
Modified: sandbox/assign_v2/boost/assign/v2/put/container/range.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/container/range.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/container/range.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,7 +25,7 @@
template<typename C, typename R>
C put_range( R const& r )
{
- C cont;
+ C cont;
return put_range( cont, r );
}
Modified: sandbox/assign_v2/boost/assign/v2/put/deduce/modifier.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/deduce/modifier.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/deduce/modifier.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,7 +23,7 @@
namespace assign{
namespace v2{
namespace switch_tag{
- struct deduce_put{};
+ struct deduce_put{};
}// switch_tag
namespace switch_aux{
@@ -37,14 +37,14 @@
template<>
struct case_<switch_tag::deduce_put, 1> :
switch_aux::helper<
- v2::modifier_tag::iterate,
+ v2::modifier_tag::iterate,
v2::container_traits::is_array
>{};
template<>
struct case_<switch_tag::deduce_put, 2> :
switch_aux::helper<
- v2::modifier_tag::push,
+ v2::modifier_tag::push,
container_traits::has_push_deduced_value
>{};
@@ -57,12 +57,12 @@
template<typename T>
struct deduce_modifier_tag
- : switch_aux::result< switch_tag::deduce_put, T>
+ : switch_aux::result< switch_tag::deduce_put, T>
{};
- // For testing purposes
- template<typename C, typename X>
- void check_deduce()
+ // For testing purposes
+ template<typename C, typename X>
+ void check_deduce()
{
typedef typename put_aux::deduce_modifier_tag<C>::type found_;
BOOST_MPL_ASSERT(( boost::is_same<found_, X> ));
Modified: sandbox/assign_v2/boost/assign/v2/put/deduce/modulo.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/deduce/modulo.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/deduce/modulo.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -17,31 +17,31 @@
#include <boost/assign/v2/put/deduce/modifier.hpp>
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace put_aux{
- struct kwd_deduce{};
+ struct kwd_deduce{};
- template<typename T>
+ template<typename T>
typename T::result_of_modulo::deduce::type
- operator%(T const& t, kwd_deduce const& kwd)
+ operator%(T const& t, kwd_deduce const& kwd)
{
- return t.modulo_deduce();
+ return t.modulo_deduce();
}
- template<typename Option1, typename Option2>
- struct deduce : ::boost::mpl::eval_if<
- boost::is_same<Option1, boost::use_default>,
- boost::mpl::identity<Option2>,
- boost::mpl::identity<Option1>
- >{};
+ template<typename Option1, typename Option2>
+ struct deduce : ::boost::mpl::eval_if<
+ boost::is_same<Option1, boost::use_default>,
+ boost::mpl::identity<Option2>,
+ boost::mpl::identity<Option1>
+ >{};
}// put_aux
namespace{
- const put_aux::kwd_deduce _deduce = put_aux::kwd_deduce();
-}
+ const put_aux::kwd_deduce _deduce = put_aux::kwd_deduce();
+}
}// v2
}// assign
}// boost
Modified: sandbox/assign_v2/boost/assign/v2/put/deduce/traits.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/deduce/traits.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/deduce/traits.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -19,12 +19,12 @@
namespace assign{
namespace v2{
- template<typename C>
+ template<typename C>
struct put_traits
{
typedef typename v2::container_traits::value<C>::type value_type;
typedef typename ::boost::mpl::eval_if<
- v2::container_traits::is_ptr_container<C>,
+ v2::container_traits::is_ptr_container<C>,
functor_aux::deduce_new_<C>,
functor_aux::deduce_constructor<C>
>::type functor_type;
Modified: sandbox/assign_v2/boost/assign/v2/put/deque/cont.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/deque/cont.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/deque/cont.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -30,14 +30,14 @@
template<typename T,typename F,typename Tag>
struct fun<put_deque_aux::cont<T, F, Tag> >
{
- template<typename F1>
+ template<typename F1>
struct apply{ typedef put_deque_aux::cont<T, F1, Tag> type; };
};
template<typename T,typename F,typename Tag>
struct modifier<put_deque_aux::cont<T, F, Tag> >
{
- template<typename NewTag>
+ template<typename NewTag>
struct apply{ typedef put_deque_aux::cont<T, F, NewTag> type; };
};
@@ -50,7 +50,7 @@
template<typename T, typename F, typename Tag>
class cont :
public put_aux::crtp<
- typename put_deque_aux::impl<T>::type, F, Tag,
+ typename put_deque_aux::impl<T>::type, F, Tag,
cont<T, F, Tag>
>
{
@@ -60,9 +60,9 @@
typedef put_aux::modifier<Tag> modifier_;
- public:
+ public:
- typedef T value_type;
+ 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<cimpl_>::type const_iterator;
@@ -72,13 +72,13 @@
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.
+ // 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.
+ // Required by crtp when Tag or F is modified.
}
// Deque interface
@@ -92,7 +92,7 @@
return boost::begin( this->impl );
}
const_iterator end()const{
- return boost::end( this->impl );
+ return boost::end( this->impl );
}
typedef typename impl_::reference reference;
@@ -120,8 +120,8 @@
const_reference front()const{
return this->container().front();
}
- reference back(){
- return this->container().back();
+ reference back(){
+ return this->container().back();
}
const_reference back()const{
return this->container().back();
Modified: sandbox/assign_v2/boost/assign/v2/put/deque/csv.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/deque/csv.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/deque/csv.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -30,10 +30,10 @@
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
namespace put_csv_deque_aux{
- template<typename T, typename R>
+ template<typename T, typename R>
void impl(R& r){}
- template<typename T, typename R, typename...Args>
+ template<typename T, typename R, typename...Args>
void impl(
R& r,
T const& t,
@@ -46,13 +46,13 @@
}//put_csv_deque_aux
- template<typename T, typename... Args>
+ template<typename T, typename... Args>
typename result_of::deque<
- typename boost::decay<T>::type
+ typename boost::decay<T>::type
>::type
csv_deque(const T& t, Args const& ... args)
{
- typedef typename boost::decay<T>::type decay_;
+ typedef typename boost::decay<T>::type decay_;
typedef typename result_of::deque<decay_>::type result_;
result_ result = deque<decay_>( v2::_nil );
put_csv_deque_aux::impl<T>(result, t, args...);
@@ -62,18 +62,18 @@
#else
#define BOOST_ASSIGN_V2_MACRO1(z, i, data) ( BOOST_PP_CAT(_, i) )
#define BOOST_ASSIGN_V2_MACRO2(z, N, data)\
- template<typename T>\
+ template<typename T>\
typename result_of::deque<\
- typename boost::decay<T>::type\
+ typename boost::decay<T>::type\
>::type\
csv_deque( BOOST_PP_ENUM_PARAMS(N, T const & _) )\
{\
- typedef typename boost::decay<T>::type decay_;\
+ typedef typename boost::decay<T>::type decay_;\
return deque<decay_>( v2::_nil) BOOST_PP_REPEAT(N, BOOST_ASSIGN_V2_MACRO1, ~ );\
}\
/**/
BOOST_PP_REPEAT_FROM_TO(
- 1,
+ 1,
BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY),
BOOST_ASSIGN_V2_MACRO2,
~
Modified: sandbox/assign_v2/boost/assign/v2/put/deque/functor.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/deque/functor.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/deque/functor.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -37,8 +37,8 @@
template<typename T>
struct deque
{
- typedef typename boost::remove_cv<T>::type t_;
- typedef typename put_deque_aux::impl<t_>::type cont_;
+ typedef typename boost::remove_cv<T>::type t_;
+ typedef typename put_deque_aux::impl<t_>::type cont_;
typedef result_of::put<cont_> traits_;
typedef typename traits_::f_ f_;
typedef typename traits_::modifier_tag_ modifier_tag_;
@@ -51,7 +51,7 @@
typename result_of::deque<T>::type
deque( keyword_aux::nil )
{
- typedef typename result_of::deque<T>::type result_;
+ typedef typename result_of::deque<T>::type result_;
return result_();
}
@@ -60,7 +60,7 @@
typename result_of::deque<T>::type
deque(Args&&...args)
{
- return deque<T>(v2::_nil)( std::forward<Args>(args)... );
+ return deque<T>(v2::_nil)( std::forward<Args>(args)... );
}
#else
@@ -81,12 +81,12 @@
} \
/**/
#define BOOST_ASSIGN_V2_MACRO2(z, n, data) BOOST_PP_SEQ_FOR_EACH_PRODUCT(\
- BOOST_ASSIGN_V2_MACRO1, \
+ BOOST_ASSIGN_V2_MACRO1, \
BOOST_PP_SEQ_FIRST_N(BOOST_PP_INC(n), BOOST_ASSIGN_V2_SEQ)\
) \
/**/
BOOST_PP_REPEAT(
- BOOST_ASSIGN_V2_LIMIT_LVALUE_CONST_ARITY,
+ BOOST_ASSIGN_V2_LIMIT_LVALUE_CONST_ARITY,
BOOST_ASSIGN_V2_MACRO2,
~
)
Modified: sandbox/assign_v2/boost/assign/v2/put/ext/iterate.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/ext/iterate.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/ext/iterate.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -33,11 +33,11 @@
}// put_parameter
namespace put_aux{
- template<>
+ template<>
class modifier<modifier_tag::iterate>
{
- public:
+ public:
typedef std::size_t size_type;
@@ -46,13 +46,13 @@
: i( i_ )
{}
- template<typename V, typename T>
+ 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);
}
- template<typename V, typename T>
+ template<typename V, typename T>
void impl(V& v, T* t)const
{
v.replace( i++ , t);
@@ -69,7 +69,7 @@
public:
typedef std::size_t size_type;
-
+
iterate():i( 0 ){}
iterate( size_type const& i_)
: i( i_ )
@@ -87,7 +87,7 @@
typedef iterate<> super_t;
- public:
+ public:
typedef std::size_t size_type;
Modified: sandbox/assign_v2/boost/assign/v2/put/ext/lookup.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/ext/lookup.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/ext/lookup.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -34,7 +34,7 @@
}// put_parameter
namespace put_aux{
- template<typename Arg>
+ template<typename Arg>
struct modifier<modifier_tag::lookup<Arg> >
{
@@ -47,7 +47,7 @@
) : ptr( new type( arg ) )
{}
- template<typename V,typename T>
+ template<typename V,typename T>
void impl(V& v, BOOST_ASSIGN_V2_forward_param(T, key) )const{
v[ key ] = (*this->ptr)( v[ key ] );
}
Modified: sandbox/assign_v2/boost/assign/v2/put/ext/repeat.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/ext/repeat.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/ext/repeat.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -30,12 +30,12 @@
}// put_parameter
namespace put_aux{
- template<typename Tag>
+ template<typename Tag>
class modifier<modifier_tag::repeat<Tag> >
{
typedef modifier<Tag> inner_;
- public:
+ public:
typedef std::size_t size_type;
@@ -52,14 +52,14 @@
arg\
);\
/**/
- template<typename V, typename T>
+ template<typename V, typename T>
void impl(V& v, BOOST_ASSIGN_V2_forward_param(T, t) )const
{
BOOST_ASSIGN_V2_MACRO( BOOST_ASSIGN_V2_forward_arg(T, t) )
}
- template<typename V, typename T>
+ template<typename V, typename T>
void impl(V& v, T* t)const
{
BOOST_ASSIGN_V2_MACRO( t )
Modified: sandbox/assign_v2/boost/assign/v2/put/ext/xxx.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/ext/xxx.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/ext/xxx.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -27,9 +27,9 @@
#define BOOST_ASSIGN_V2_PUT_EXT_XXX(Param)\
namespace result_of_modulo{\
\
- template<typename T, typename Arg>\
- struct Param\
- : ::boost::mpl::apply1<\
+ template<typename T, typename Arg>\
+ struct Param\
+ : ::boost::mpl::apply1<\
result_of_modulo::ext<T>\
, put_parameter::Param<Arg>\
>\
@@ -43,12 +43,12 @@
boost::is_base_of<put_aux::put_base, T>,\
result_of_modulo::Param<T, Arg>\
>::type\
- operator%(\
- T const& t,\
+ operator%(\
+ T const& t,\
put_aux::Param<Arg> const& p\
)\
{\
- typedef result_of_modulo::Param<T, Arg> caller_;\
+ typedef result_of_modulo::Param<T, Arg> caller_;\
return caller_::call( t, p );\
}\
\
Modified: sandbox/assign_v2/boost/assign/v2/put/frame/base.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/frame/base.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/frame/base.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,9 +15,9 @@
namespace v2{
namespace put_aux{
- struct put_base{
- // This base is used in some enable_if
- };
+ struct put_base{
+ // This base is used in some enable_if
+ };
}// put_aux
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/put/frame/crtp.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/frame/crtp.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/frame/crtp.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -36,79 +36,79 @@
namespace v2{
namespace put_aux{
- template<typename F>
- struct fun_holder{
+ template<typename F>
+ struct fun_holder{
- typedef F fun_type;
+ typedef F fun_type;
- fun_holder(){}
+ fun_holder(){}
fun_holder(fun_type const& f) : fun( f ){}
- fun_type fun;
+ fun_type fun;
};
- template<typename Tag>
- struct modifier_holder{
+ template<typename Tag>
+ struct modifier_holder{
- typedef Tag modifier_tag;
- typedef put_aux::modifier<Tag> modifier_type;
+ typedef Tag modifier_tag;
+ typedef put_aux::modifier<Tag> modifier_type;
- modifier_holder(){}
+ modifier_holder(){}
modifier_holder(modifier_type const& m) : modifier( m ){}
- typedef put_aux::modifier<Tag> modifier_;
+ typedef put_aux::modifier<Tag> modifier_;
- modifier_type modifier;
+ modifier_type modifier;
};
- // D has to model concept_sub::Pre3, with respect to container C, functor F
+ // D has to model concept_sub::Pre3, with respect to container C, functor F
// and Tag. It then models concept_sub::Post
template<typename C, typename F, typename Tag, typename D>
class crtp :
- public put_base
- , public fun_holder<F>
- , public modifier_holder<Tag>
+ public put_base
+ , public fun_holder<F>
+ , public modifier_holder<Tag>
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
//do nothing
#else
- , public functor_aux::crtp_unary_and_up<
- crtp<C, F, Tag, D>,
- ::boost::mpl::always< D const& >
- >
+ , public functor_aux::crtp_unary_and_up<
+ crtp<C, F, Tag, D>,
+ ::boost::mpl::always< D const& >
+ >
#endif
{
- public:
- typedef D const& result_type;
+ public:
+ typedef D const& result_type;
- protected:
+ protected:
- typedef fun_holder<F> fun_holder_;
- typedef modifier_holder<Tag> modifier_holder_;
+ typedef fun_holder<F> fun_holder_;
+ typedef modifier_holder<Tag> modifier_holder_;
typedef typename modifier_holder_::modifier_type modifier_;
public:
- D & derived(){ return static_cast<D&>(*this); }
- D const& derived()const{ return static_cast<D const&>(*this); }
+ D & derived(){ return static_cast<D&>(*this); }
+ D const& derived()const{ return static_cast<D const&>(*this); }
- //public:
-
- crtp(){}
+ //public:
+
+ crtp(){}
explicit crtp( F const& f ) : fun_holder_( f ){}
explicit crtp( F const& f, modifier_ const& m )
- : fun_holder_( f ), modifier_holder_( m ){}
+ : fun_holder_( f ), modifier_holder_( m ){}
- result_type operator()()const
- {
- return this->modify( this->fun() );
- }
+ result_type operator()()const
+ {
+ return this->modify( this->fun() );
+ }
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- //[crtp_functor
+ //[crtp_functor
template<typename...Args>
result_type operator()( Args&&...args )const
{
@@ -126,69 +126,69 @@
> super_t;
public:
- using super_t::operator();
+ using super_t::operator();
#define BOOST_ASSIGN_V2_MACRO(z, N, data) \
- template<BOOST_PP_ENUM_PARAMS(N, typename T)> \
+ template<BOOST_PP_ENUM_PARAMS(N, typename T)> \
result_type \
impl( BOOST_PP_ENUM_BINARY_PARAMS(N, T, & _) )const \
- { \
+ { \
return this->modify( this->fun(BOOST_PP_ENUM_PARAMS(N,_)) ); \
- } \
+ } \
/**/
BOOST_PP_REPEAT_FROM_TO(
- 1,
+ 1,
BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_ARITY),
BOOST_ASSIGN_V2_MACRO,
~
)
#undef BOOST_ASSIGN_V2_MACRO
#endif
- C& container()const{ return this->derived().container(); }
+ C& container()const{ return this->derived().container(); }
- struct result_of_modulo{
+ struct result_of_modulo{
struct deduce
{
- typedef functor_aux::deduce_constructor<C> caller_;
- typedef typename caller_::type cons_;
+ typedef functor_aux::deduce_constructor<C> caller_;
+ typedef typename caller_::type cons_;
typedef v2::result_of_modulo::fun<D> meta_;
typedef typename ::boost::mpl::apply1<meta_, cons_>::type type;
};
};
- typename result_of_modulo::deduce::type
- modulo_deduce()const
+ typename result_of_modulo::deduce::type
+ modulo_deduce()const
{
- typedef functor_aux::deduce_constructor<C> caller_;
- typedef typename caller_::type cons_;
- typedef typename result_of_modulo::deduce::type result_;
- return result_(
- this->derived().container(),
- caller_::call()
- );
+ typedef functor_aux::deduce_constructor<C> caller_;
+ typedef typename caller_::type cons_;
+ typedef typename result_of_modulo::deduce::type result_;
+ return result_(
+ this->derived().container(),
+ caller_::call()
+ );
}
- protected:
+ protected:
- template<typename T>
+ template<typename T>
result_type modify(T* t)const
{
- typedef put_concept::ModifierImpl<modifier_, C, T*> concept_;
+ typedef put_concept::ModifierImpl<modifier_, C, T*> concept_;
BOOST_CONCEPT_ASSERT(( concept_ ));
- this->modifier.impl( this->derived().container(), t );
+ this->modifier.impl( this->derived().container(), t );
return this->derived();
}
- template<typename T>
- void check_modifier( BOOST_ASSIGN_V2_forward_param(T, t) )const
+ template<typename T>
+ void check_modifier( BOOST_ASSIGN_V2_forward_param(T, t) )const
{
- typedef put_concept::ModifierImpl<modifier_, C,
+ typedef put_concept::ModifierImpl<modifier_, C,
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- T&&
+ T&&
#else
- T&
+ T&
#endif
> concept_;
BOOST_CONCEPT_ASSERT(( concept_ ));
@@ -196,12 +196,12 @@
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- //[crtp_modify
- template<typename T>
+ //[crtp_modify
+ template<typename T>
result_type modify(T&& t)const
{
- check_modifier( t );
- this->modifier.impl(
+ check_modifier( t );
+ this->modifier.impl(
this->derived().container(),
std::forward<T>( t )
);
@@ -209,19 +209,19 @@
}
//]
#else
- template<typename T>
+ template<typename T>
result_type modify(T& t)const
{
- check_modifier( t );
- this->modifier.impl( this->derived().container(), t );
+ check_modifier( t );
+ this->modifier.impl( this->derived().container(), t );
return this->derived();
}
- template<typename T>
+ template<typename T>
result_type modify(T const& t)const
{
- check_modifier( t );
- this->modifier.impl( this->derived().container(), t );
+ check_modifier( t );
+ this->modifier.impl( this->derived().container(), t );
return this->derived();
}
Modified: sandbox/assign_v2/boost/assign/v2/put/frame/modifier.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/frame/modifier.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/frame/modifier.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,11 +15,11 @@
namespace assign{
namespace v2{
namespace modifier_tag{
- // add as necessary
+ // add as necessary
}
namespace put_aux{
- template<typename Tag>
+ template<typename Tag>
struct modifier{
/* Specialize on Tag:
template<typename V, typename T>
@@ -29,13 +29,13 @@
}// put_aux
namespace put_concept{
- // M models ModifierImpl with respect to container V and reference
+ // M models ModifierImpl with respect to container V and reference
// (or pointer) type R
- template<typename M, typename C, typename R>
- struct ModifierImpl
+ template<typename M, typename C, typename R>
+ struct ModifierImpl
{
- BOOST_CONCEPT_USAGE(ModifierImpl)
+ BOOST_CONCEPT_USAGE(ModifierImpl)
{
m.impl( cont, t );
}
Modified: sandbox/assign_v2/boost/assign/v2/put/frame/sub.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/frame/sub.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/frame/sub.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,43 +18,43 @@
namespace put_concept{
namespace sub{
- // X models Pre1 wrt to V
- template<typename C, typename X>
- struct Pre1{
+ // X models Pre1 wrt to V
+ template<typename C, typename X>
+ struct Pre1{
- BOOST_CONCEPT_USAGE(Pre1)
+ BOOST_CONCEPT_USAGE(Pre1)
{
- X x( v );
+ X x( v );
C& ref = x.container();
}
private:
static C& v;
- };
+ };
- template<typename C, typename F, typename X>
- struct Pre2 : Pre1<C, X>{
+ template<typename C, typename F, typename X>
+ struct Pre2 : Pre1<C, X>{
- BOOST_CONCEPT_USAGE(Pre2)
+ BOOST_CONCEPT_USAGE(Pre2)
{
- X x( v, f );
+ X x( v, f );
}
private:
static C& v;
static F const &f;
- };
+ };
- template<typename C, typename F, typename Tag,typename X>
- struct Pre3 : Pre2<C, F, X>{
+ template<typename C, typename F, typename Tag,typename X>
+ struct Pre3 : Pre2<C, F, X>{
typedef put_aux::modifier<Tag> modifier_;
- BOOST_CONCEPT_USAGE(Pre3)
+ BOOST_CONCEPT_USAGE(Pre3)
{
- X x( v, f, m );
+ X x( v, f, m );
}
private:
@@ -62,19 +62,19 @@
static F const &f;
static modifier_ m;
- };
+ };
- template<typename C, typename F, typename Tag, typename X>
- class Post : Pre3<C, F, Tag, X>
+ template<typename C, typename F, typename Tag, typename X>
+ class Post : Pre3<C, F, Tag, X>
{
- typedef Pre3<C, F, Tag, X> super_t;
+ typedef Pre3<C, F, Tag, X> super_t;
typedef typename super_t::modifier_ modifier_;
- BOOST_CONCEPT_USAGE(Post)
+ BOOST_CONCEPT_USAGE(Post)
{
- F const& f = x.fun;
- modifier_ const& m = x.modifier;
+ F const& f = x.fun;
+ modifier_ const& m = x.modifier;
}
private:
Modified: sandbox/assign_v2/boost/assign/v2/put/modulo/ext.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modulo/ext.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modulo/ext.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,27 +25,27 @@
namespace v2{
namespace put_parameter{
- template<typename F, typename Tag>
- struct traits{
+ template<typename F, typename Tag>
+ struct traits{
typedef F fun_type;
typedef Tag modifier_tag;
- typedef traits<F, Tag> type;
- };
+ typedef traits<F, Tag> type;
+ };
}// put_parameter
namespace put_concept{
- // P models Parameter with respect to modifier M
+ // P models Parameter with respect to modifier M
template<typename P, typename M>
- struct ExtParam
+ struct ExtParam
{
- BOOST_CONCEPT_USAGE(ExtParam)
+ BOOST_CONCEPT_USAGE(ExtParam)
{
- M m( p.arg() );
+ M m( p.arg() );
}
private:
- static P & p;
+ static P & p;
};
}// put_concept
@@ -54,23 +54,23 @@
template<typename T>
struct ext{
- template<typename FParameter>
+ template<typename FParameter>
struct apply{
- typedef typename T::fun_type old_fun_;
- typedef typename T::modifier_tag old_tag;
- typedef typename ::boost::mpl::apply2<
- FParameter, old_fun_, old_tag
+ typedef typename T::fun_type old_fun_;
+ typedef typename T::modifier_tag old_tag;
+ typedef typename ::boost::mpl::apply2<
+ FParameter, old_fun_, old_tag
>::type traits_;
typedef typename traits_::fun_type fun_;
typedef typename traits_::modifier_tag tag;
- typedef result_of_modulo::modifier<T> meta1_;
+ typedef result_of_modulo::modifier<T> meta1_;
typedef result_of_modulo::fun_modifier<T> meta2_;
typedef boost::is_same<fun_, old_fun_> is_same_fun_;
- typedef typename ::boost::mpl::eval_if<
- is_same_fun_,
+ typedef typename ::boost::mpl::eval_if<
+ is_same_fun_,
::boost::mpl::apply1< meta1_, tag >,
::boost::mpl::apply2< meta2_, fun_, tag>
>::type type;
Modified: sandbox/assign_v2/boost/assign/v2/put/modulo/fun.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modulo/fun.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modulo/fun.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,8 +16,8 @@
namespace v2{
namespace result_of_modulo{
- template<typename D> struct fun/* Specialize on D(erived) */{
- template<typename F> struct apply{};
+ template<typename D> struct fun/* Specialize on D(erived) */{
+ template<typename F> struct apply{};
};
}// result_of_modulo
@@ -32,27 +32,27 @@
template<typename T, typename F1>
typename ::boost::mpl::apply1<result_of_modulo::fun<T>, F1>::type
- operator%(T const& t, put_modulo_aux::fun<F1> const& h)
+ operator%(T const& t, put_modulo_aux::fun<F1> const& h)
{
- typedef result_of_modulo::fun<T> meta_;
- typedef typename ::boost::mpl::apply1<meta_, F1>::type result_;
+ typedef result_of_modulo::fun<T> meta_;
+ typedef typename ::boost::mpl::apply1<meta_, F1>::type result_;
return result_( t.container(), h.value, t.modifier );
}
struct kwd_fun{
template<typename F>
- put_modulo_aux::fun<F> operator=(F const& f)const
- {
+ put_modulo_aux::fun<F> operator=(F const& f)const
+ {
return put_modulo_aux::fun<F>( f );
- }
+ }
};
}// put_modulo_aux
namespace{
- const put_modulo_aux::kwd_fun _fun = put_modulo_aux::kwd_fun();
-}
+ const put_modulo_aux::kwd_fun _fun = put_modulo_aux::kwd_fun();
+}
}// v2
}// assign
}// boost
Modified: sandbox/assign_v2/boost/assign/v2/put/modulo/fun_modifier.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modulo/fun_modifier.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modulo/fun_modifier.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,13 +18,13 @@
namespace v2{
namespace result_of_modulo{
- template<typename T> struct fun_modifier
+ template<typename T> struct fun_modifier
{
- template<typename F, typename Tag>
+ template<typename F, typename Tag>
struct apply
{
- typedef result_of_modulo::fun<T> meta_fun_;
- typedef typename ::boost::mpl::apply1< meta_fun_, F>::type new_t_;
+ typedef result_of_modulo::fun<T> meta_fun_;
+ typedef typename ::boost::mpl::apply1< meta_fun_, F>::type new_t_;
typedef result_of_modulo::modifier<new_t_> modifier_;
typedef typename ::boost::mpl::apply1< modifier_, Tag>::type type;
};
Modified: sandbox/assign_v2/boost/assign/v2/put/modulo/generic.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modulo/generic.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modulo/generic.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -20,10 +20,10 @@
template<typename T>
struct generic_
{
- template<typename P>
+ template<typename P>
struct apply
{
- static T t;
+ static T t;
static P p;
typedef BOOST_TYPEOF_TPL( t % p ) type;
};
Modified: sandbox/assign_v2/boost/assign/v2/put/modulo/modifier.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modulo/modifier.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modulo/modifier.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -19,44 +19,44 @@
namespace v2{
namespace result_of_modulo{
- template<typename D> struct modifier /* Specialize on D(erived) */{
- template<typename Tag> struct apply{};
+ template<typename D> struct modifier /* Specialize on D(erived) */{
+ template<typename Tag> struct apply{};
};
}// result_of_modulo
namespace put_modulo_aux{
- template<typename Tag> struct modifier
+ template<typename Tag> struct modifier
{
- modifier(){}
+ modifier(){}
modifier(Tag const& t) : modifier_tag( t ){}
- Tag modifier_tag;
+ Tag modifier_tag;
};
- template<typename T, typename NewTag>
+ template<typename T, typename NewTag>
typename ::boost::mpl::apply1<result_of_modulo::modifier<T>, NewTag>::type
operator%(T const& t, put_modulo_aux::modifier<NewTag> const& h )
{
- typedef result_of_modulo::modifier<T> meta_;
+ typedef result_of_modulo::modifier<T> meta_;
- typedef typename ::boost::mpl::apply1<meta_, NewTag>::type result_;
+ typedef typename ::boost::mpl::apply1<meta_, NewTag>::type result_;
typedef put_aux::modifier<NewTag> modifier_;
return result_( t.container(), t.fun, modifier_( h.modifier_tag ) );
}
- struct kwd_modifier
+ struct kwd_modifier
{
- template<typename Tag>
+ template<typename Tag>
modifier<Tag> operator=( Tag const& t)const
{
- return modifier<Tag>( t );
+ return modifier<Tag>( t );
}
};
}// put_modulo_aux
namespace{
- put_modulo_aux::kwd_modifier const _modifier
- = put_modulo_aux::kwd_modifier();
+ put_modulo_aux::kwd_modifier const _modifier
+ = put_modulo_aux::kwd_modifier();
}
}// v2
}// assign
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/csv/forward.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/csv/forward.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/csv/forward.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,7 +18,7 @@
namespace put_pipe_aux{
template<csv_size_type N,
- csv_size_type I, typename F, typename C>
+ csv_size_type I, typename F, typename C>
typename boost::enable_if_c<
N == I
>::type
@@ -29,7 +29,7 @@
{}
template<csv_size_type N,
- csv_size_type I, typename F, typename C>
+ csv_size_type I, typename F, typename C>
typename boost::enable_if_c<
I < N
>::type
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/csv/generator.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/csv/generator.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/csv/generator.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -37,34 +37,34 @@
#endif
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace put_pipe_aux{
template<typename Pars = ::boost::mpl::vector0<> >
- class csv_generator
+ class csv_generator
{
- //typedef boost::use_default tag2_;
- //typedef v2::ref::assign_copy::nth_result_of::fusion<tag2_> meta1_;
+ //typedef boost::use_default tag2_;
+ //typedef v2::ref::assign_copy::nth_result_of::fusion<tag2_> meta1_;
- typedef ::boost::mpl::na na_;
+ typedef ::boost::mpl::na na_;
typedef modulo_traits<Pars> modulo_traits_;
- public:
+ public:
typedef typename modulo_traits_::size pars_size;
typedef typename modulo_traits_::cont_ pars_cont_type;
- csv_generator(){}
- explicit csv_generator(pars_cont_type const& p)
+ csv_generator(){}
+ explicit csv_generator(pars_cont_type const& p)
: pars_cont( p ){}
template<typename T>
struct modulo_result
{
- typedef typename modulo_traits_:: template new_pars<T>::type new_;
+ typedef typename modulo_traits_:: template new_pars<T>::type new_;
typedef csv_generator<new_> type;
};
@@ -72,30 +72,30 @@
typename modulo_result<T>::type
operator%(T const& t)const
{
- typedef typename modulo_result<T>::type result_;
+ typedef typename modulo_result<T>::type result_;
return result_( this->pars_cont( t ) );
}
- template<std::size_t N, typename U = na_>
+ template<std::size_t N, typename U = na_>
struct result{
- typedef put_pipe_aux::csv_rhs<Pars, N, U> type;
+ typedef put_pipe_aux::csv_rhs<Pars, N, U> type;
};
- typename result<0>::type
- operator()()const
- {
- typedef typename result<0>::type result_;
- return result_(
- *this,
- ref::csv_array<na_>( _nil )
- );
- }
+ typename result<0>::type
+ operator()()const
+ {
+ typedef typename result<0>::type result_;
+ return result_(
+ *this,
+ ref::csv_array<na_>( _nil )
+ );
+ }
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
protected:
- template<typename T, typename...Args>
- typename result<sizeof...(Args)+1, T>::type
+ template<typename T, typename...Args>
+ typename result<sizeof...(Args)+1, T>::type
impl(T& t, Args&...args)const
{
typedef typename result<sizeof...(Args)+1, T>::type result_;
@@ -108,8 +108,8 @@
public:
- template<typename T, typename...Args>
- typename boost::lazy_disable_if<
+ template<typename T, typename...Args>
+ typename boost::lazy_disable_if<
v2::type_traits::or_const<T, Args...>,
result<sizeof...(Args)+1, T>
>::type
@@ -118,8 +118,8 @@
return this->impl(t, args...);
}
- template<typename T, typename...Args>
- typename result<sizeof...(Args)+1, T const>::type
+ template<typename T, typename...Args>
+ typename result<sizeof...(Args)+1, T const>::type
operator()(T const& t, Args const&...args)const
{
return this->impl(t, args...);
@@ -135,24 +135,24 @@
/**/
#define BOOST_ASSIGN_V2_MACRO2(z, N, data)\
- template<typename T>\
- typename result<N, T>::type\
+ template<typename T>\
+ typename result<N, T>::type\
operator()( BOOST_PP_ENUM_PARAMS(N, T &_) )const \
{ \
- typedef typename result<N, T>::type result_;\
+ typedef typename result<N, T>::type result_;\
BOOST_ASSIGN_V2_MACRO1( N, T )\
} \
- template<typename T>\
- typename result<N, T const>::type\
+ 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_;\
+ typedef typename result<N, T const>::type result_;\
BOOST_ASSIGN_V2_MACRO1( N, T const )\
} \
/**/
BOOST_PP_REPEAT_FROM_TO(
- 1,
+ 1,
BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY),
BOOST_ASSIGN_V2_MACRO2,
~
@@ -162,8 +162,8 @@
#endif
- protected:
- pars_cont_type pars_cont;
+ protected:
+ pars_cont_type pars_cont;
};
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/csv/keyword.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/csv/keyword.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/csv/keyword.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,8 +16,8 @@
namespace v2{
namespace{
- put_pipe_aux::csv_generator<> const _csv_put
- = put_pipe_aux::csv_generator<>();
+ put_pipe_aux::csv_generator<> const _csv_put
+ = put_pipe_aux::csv_generator<>();
}
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/csv/operator.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/csv/operator.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/csv/operator.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,11 +21,11 @@
namespace put_pipe_aux{
template<typename V,
- typename Pars, csv_size_type N, typename U>
+ typename Pars, csv_size_type N, typename U>
V& operator|(V& v, put_pipe_aux::csv_rhs<Pars, N, U> const& c){
csv_forward(
- forward_pars<Pars>(
+ forward_pars<Pars>(
put( v ),
c.pars()
),
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/csv/rhs.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/csv/rhs.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/csv/rhs.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,43 +16,43 @@
#include <boost/assign/v2/put/pipe/csv/size_type.hpp>
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace put_pipe_aux{
- template<typename Pars, csv_size_type N, typename U>
+ template<typename Pars, csv_size_type N, typename U>
struct csv_rhs
{
typedef boost::use_default tag2_;
typedef modulo_traits<Pars> modulo_traits_;
typedef typename modulo_traits_::size pars_size;
typedef typename modulo_traits_::cont_ pars_cont_type;
- typedef typename v2::ref::nth_result_of::csv_array<
- N,
- U
- >::type seq_arg_cont_type; //notice it's arg, not args
+ typedef typename v2::ref::nth_result_of::csv_array<
+ N,
+ U
+ >::type seq_arg_cont_type; //notice it's arg, not args
csv_rhs(){}
csv_rhs(pars_cont_type const& p, seq_arg_cont_type const& s)
- : pars_cont( p ), seq_arg( s ){}
+ : pars_cont( p ), seq_arg( s ){}
- pars_cont_type const& pars()const
+ pars_cont_type const& pars()const
{
- return this->pars_cont;
+ return this->pars_cont;
}
- seq_arg_cont_type const& seq_args()const
+ seq_arg_cont_type const& seq_args()const
{
- return this->seq_arg;
+ return this->seq_arg;
}
- seq_arg_cont_type& seq_args()
+ seq_arg_cont_type& seq_args()
{
- return this->seq_arg;
+ return this->seq_arg;
}
- protected:
- pars_cont_type pars_cont;
+ protected:
+ pars_cont_type pars_cont;
seq_arg_cont_type seq_arg;
};
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/csv/size_type.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/csv/size_type.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/csv/size_type.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,7 +16,7 @@
namespace v2{
namespace put_pipe_aux{
- typedef ref::list_aux::size_type csv_size_type;
+ typedef ref::list_aux::size_type csv_size_type;
}// put_pipe_aux
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/functor/cpp03/forward.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/functor/cpp03/forward.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/functor/cpp03/forward.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -92,7 +92,7 @@
){}
template<typename F,
- put_pipe_aux::size_type N, typename L, params(typename T)>
+ put_pipe_aux::size_type N, typename L, params(typename T)>
void forward(
F const& f,
ref::list_tuple_aux::container<N, L, params(T)> const& list
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/functor/cpp0x/forward.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/functor/cpp0x/forward.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/functor/cpp0x/forward.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -88,7 +88,7 @@
){}
template<typename F,
- put_pipe_aux::size_type N, typename L, typename...Args>
+ put_pipe_aux::size_type N, typename L, typename...Args>
void forward(
F const& f,
ref::list_tuple_aux::container<N, L, Args...> const& list
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/functor/operator.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/functor/operator.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/functor/operator.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -30,7 +30,7 @@
put_pipe_aux::rhs<Pars, SeqArgs, enable_pars> const& c
){
forward(
- forward_pars<Pars>(
+ forward_pars<Pars>(
put( v ),
c.pars()
),
@@ -42,7 +42,7 @@
}// put_pipe_aux
namespace{
- put_pipe_aux::rhs<> const _put = put_pipe_aux::rhs<>();
+ put_pipe_aux::rhs<> const _put = put_pipe_aux::rhs<>();
}
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/functor/rhs.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/functor/rhs.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/functor/rhs.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -36,28 +36,28 @@
namespace put_pipe_aux{
template<
- typename Pars = ::boost::mpl::vector0<>,
- typename SeqArgs = ::boost::mpl::vector0<>,
+ typename Pars = ::boost::mpl::vector0<>,
+ typename SeqArgs = ::boost::mpl::vector0<>,
bool enable_pars = (boost::mpl::size<SeqArgs>::value == 0)
>
- class rhs;
+ class rhs;
template<typename Pars, typename SeqArgs, bool enable_pars>
struct rhs_result_helper
{
- template<typename V>
- struct apply
- {
- typedef typename ::boost::mpl::push_back<
+ template<typename V>
+ struct apply
+ {
+ typedef typename ::boost::mpl::push_back<
SeqArgs,
V
>::type new_;
- typedef put_pipe_aux::rhs<
+ typedef put_pipe_aux::rhs<
Pars,
new_
> type;
- };
+ };
};
@@ -76,7 +76,7 @@
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- template<typename...Args>
+ template<typename...Args>
struct apply : helper_::template apply<
typename ::boost::mpl::detail::variadic_vector<
Args...
@@ -86,7 +86,7 @@
#else
- template<typename V>
+ template<typename V>
struct apply : helper_::template apply<V>{};
#endif
@@ -94,28 +94,28 @@
};
- template<typename Pars, typename SeqArgs, bool enable_pars>
- class rhs
+ template<typename Pars, typename SeqArgs, bool enable_pars>
+ class rhs
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
//do nothing
#else
- : public functor_aux::crtp_unary_and_up<
+ : public functor_aux::crtp_unary_and_up<
rhs<Pars, SeqArgs, enable_pars>,
rhs_result<Pars, SeqArgs, enable_pars>
- >
+ >
#endif
{
- typedef boost::use_default list_tag_;
+ typedef boost::use_default list_tag_;
typedef modulo_traits<Pars> modulo_traits_;
- typedef ref::nth_result_of::list_tuple meta2_;
+ typedef ref::nth_result_of::list_tuple meta2_;
public:
typedef typename modulo_traits_::size pars_size;
typedef typename modulo_traits_::cont_ pars_cont_type;
- BOOST_STATIC_CONSTANT(
- std::size_t,
+ BOOST_STATIC_CONSTANT(
+ std::size_t,
seq_args_size = ::boost::mpl::size<SeqArgs>::value
);
@@ -126,7 +126,7 @@
rhs(){}
explicit rhs(
- pars_cont_type const& p,
+ pars_cont_type const& p,
seq_args_cont_type const& s
) : pars_cont( p ),
seq_args_cont( s ){}
@@ -136,18 +136,18 @@
template<typename T>
struct modulo_result
{
- typedef typename modulo_traits_:: template new_pars<T>::type new_;
+ typedef typename modulo_traits_:: template new_pars<T>::type new_;
typedef rhs<new_, SeqArgs> type;
};
template<typename T>
typename boost::lazy_enable_if_c<
- enable_pars,
- modulo_result<T>
+ enable_pars,
+ modulo_result<T>
>::type
operator%(T const& t)const
{
- typedef typename modulo_result<T>::type result_;
+ typedef typename modulo_result<T>::type result_;
return result_(
this->pars_cont( t ),
this->seq_args_cont
@@ -195,10 +195,10 @@
#else
protected:
- typedef functor_aux::crtp_unary_and_up<
+ typedef functor_aux::crtp_unary_and_up<
rhs,
rhs_result<Pars, SeqArgs, enable_pars>
- > super_t;
+ > super_t;
typedef ::boost::mpl::vector0<> v0_;
@@ -214,7 +214,7 @@
);
}
- using super_t::operator();
+ using super_t::operator();
#define BOOST_ASSIGN_V2_MACRO1( z, n, data )\
( BOOST_PP_CAT(_,n) )\
@@ -232,13 +232,13 @@
> v_;\
typedef typename result<v_>::type result_;\
return result_(\
- this->pars_cont,\
+ this->pars_cont,\
this->seq_args_cont( BOOST_PP_ENUM_PARAMS(N1, _) )\
);\
}\
/**/
BOOST_PP_REPEAT_FROM_TO(
- 1,
+ 1,
BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_ARITY),
BOOST_ASSIGN_V2_MACRO2,
~
@@ -250,11 +250,11 @@
pars_cont_type const& pars()const
{
- return this->pars_cont;
+ return this->pars_cont;
}
seq_args_cont_type const& seq_args()const
{
- return this->seq_args_cont;
+ return this->seq_args_cont;
}
protected:
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/functor/size_type.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/functor/size_type.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/functor/size_type.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,7 +16,7 @@
namespace v2{
namespace put_pipe_aux{
- typedef ref::list_tuple_aux::get_size_type size_type;
+ typedef ref::list_tuple_aux::get_size_type size_type;
}// put_pipe_aux
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/forward.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/forward.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/forward.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,11 +23,11 @@
namespace put_pipe_aux{
namespace result_of{
- template<modulo_size_type N, typename Pars, typename T,
- bool exit = (N == ::boost::mpl::size<Pars>::value)>
- struct forward_pars
+ template<modulo_size_type N, typename Pars, typename T,
+ bool exit = (N == ::boost::mpl::size<Pars>::value)>
+ struct forward_pars
{
- typedef typename ::boost::mpl::at_c<Pars, N>::type at_;
+ 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_;
@@ -38,45 +38,45 @@
template<typename H>
static type call(H const& h, T const& t)
{
- typedef ::boost::mpl::int_<N> int_;
- return next_::call(h, t % ref::at<N>( h ) );
+ typedef ::boost::mpl::int_<N> int_;
+ return next_::call(h, t % ref::at<N>( h ) );
}
};
- template<modulo_size_type N,typename Pars, typename T>
- struct forward_pars<N, Pars, T, true>
+ template<modulo_size_type N,typename Pars, typename T>
+ struct forward_pars<N, Pars, T, true>
{
- typedef T type;
+ typedef T type;
template<typename H>
static type call(H const& h, T const& t)
{
- return t;
+ return t;
}
};
}// result_of
- template<typename Pars, typename T,typename C>
+ template<typename Pars, typename T,typename C>
typename result_of::forward_pars<0, Pars, T>::type
- forward_pars(
+ forward_pars(
T const& object,
C const& c
- )
+ )
{
- typedef result_of::forward_pars<0, Pars, T> caller_;
+ typedef result_of::forward_pars<0, Pars, T> caller_;
return caller_::call( c, object );
- }
+ }
}// put_pipe_aux
namespace result_of{
- template<typename T,typename Pars>
+ template<typename T,typename Pars>
struct forward_pars : put_pipe_aux::result_of::forward_pars<
- 0,
+ 0,
Pars,
T
>{};
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/size_type.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/size_type.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/size_type.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,7 +16,7 @@
namespace v2{
namespace put_pipe_aux{
- typedef ref::list_aux::size_type modulo_size_type;
+ typedef ref::list_aux::size_type modulo_size_type;
}// put_pipe_aux
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/traits.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/traits.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/modulo/traits.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,22 +18,22 @@
#include <boost/assign/v2/ref/list/make.hpp>
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace put_pipe_aux{
- template<typename Pars>
- struct modulo_traits
+ template<typename Pars>
+ struct modulo_traits
{
- typedef ref::nth_result_of::list<use_default> meta_;
+ typedef ref::nth_result_of::list<use_default> meta_;
typedef typename ::boost::mpl::apply1<meta_, Pars>::type cont_;
typedef typename ::boost::mpl::size<Pars>::type size;
template<typename T>
struct new_pars : ::boost::mpl::push_back<Pars, T const&>{};
- };
+ };
}// put_pipe_aux
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/put/pipe/range.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/pipe/range.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/range.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,7 +25,7 @@
public:
- helper1(R const& range) : super_t( range ){}
+ helper1(R const& range) : super_t( range ){}
R const& range()const{ return this->get(); }
@@ -35,12 +35,12 @@
struct helper2
{
- helper2(){}
+ helper2(){}
template<typename R>
helper1<R> operator()(const R& range)const
{
- typedef helper1<R> result_;
- return result_( range );
+ typedef helper1<R> result_;
+ return result_( range );
}
};
@@ -53,7 +53,7 @@
template<typename C, typename R>
C operator|( ::boost::type<C>, put_range_aux::helper1<R> const& h)
{
- return put_range<C>( h.range() );
+ return put_range<C>( h.range() );
}
}// put_range_aux
Modified: sandbox/assign_v2/boost/assign/v2/put/std/xxx.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/std/xxx.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/std/xxx.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,21 +25,21 @@
class modifier<v2::modifier_tag::FUN>\
{\
\
- typedef boost::accumulators::dont_care dont_care_;\
+ typedef boost::accumulators::dont_care dont_care_;\
\
- public:\
+ public:\
\
modifier(){}\
modifier( dont_care_ ){}\
\
- template<typename V, typename T>\
+ 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>\
+ template<typename V, typename T>\
void impl(V& v, T* t)const{ v.FUN( t ); }\
\
};\
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/alloc/instant.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/alloc/instant.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/alloc/instant.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,24 +23,24 @@
// template<size_type N, typename Tag, typename T>
template<size_type N, typename T>
class instant_alloc : public array_aux::interface<
- typename array_aux::impl_traits<N, T>::array_type,
+ typename array_aux::impl_traits<N, T>::array_type,
// instant_alloc<N, Tag, T>
instant_alloc<N, T>
- >
+ >
{
- typedef typename array_aux::impl_traits<N, T>::array_type impl_;
+ typedef typename array_aux::impl_traits<N, T>::array_type impl_;
public:
- instant_alloc(){}
+ instant_alloc(){}
template<typename L>
instant_alloc(const L& l){
assign_array(
- this->array,
+ this->array,
l
- );
- }
+ );
+ }
impl_& impl(){
return this->array;
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/alloc/instant_fwd.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/alloc/instant_fwd.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/alloc/instant_fwd.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,7 +16,7 @@
namespace v2{
namespace ref{
namespace alloc_tag{
- struct instant_alloc{};
+ struct instant_alloc{};
}// alloc_tag
namespace array_aux{
// template<size_type N, typename Tag, typename T> class instant_alloc;
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/alloc/lazy.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/alloc/lazy.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/alloc/lazy.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,17 +21,17 @@
namespace ref{
namespace array_aux{
-// template<std::size_t N,typename Tag, typename T, typename D>
- template<std::size_t N,typename T, typename D>
- class lazy_alloc : public array_aux::interface<
- typename array_aux::impl_traits<N, T>::array_type,
+// template<std::size_t N,typename Tag, typename T, typename D>
+ template<std::size_t N,typename T, typename D>
+ class lazy_alloc : public array_aux::interface<
+ typename array_aux::impl_traits<N, T>::array_type,
// lazy_alloc<N,Tag,T,D>
lazy_alloc<N, T, D>
- >
+ >
{
- typedef typename array_aux::impl_traits<N, T>::array_type impl_;
+ typedef typename array_aux::impl_traits<N, T>::array_type impl_;
- typedef ::boost::mpl::int_<N> size_;
+ typedef ::boost::mpl::int_<N> size_;
void alloc_if()const{
if(!this->ptr){
@@ -42,13 +42,13 @@
void alloc()const{
this->ptr = smart_ptr_(new impl_);
assign_array(
- *this->ptr,
+ *this->ptr,
static_cast<const D&>(*this)
- );
+ );
}
- typedef array_aux::interface<impl_, lazy_alloc> super_t;
-
+ typedef array_aux::interface<impl_, lazy_alloc> super_t;
+
public:
impl_& impl(){
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/alloc/lazy_fwd.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/alloc/lazy_fwd.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/alloc/lazy_fwd.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,7 +16,7 @@
namespace v2{
namespace ref{
namespace alloc_tag{
- struct lazy_alloc{};
+ struct lazy_alloc{};
}// alloc_tag
namespace array_aux{
template<size_type N, typename T, typename D>
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/csv/make.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/csv/make.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/csv/make.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -36,15 +36,15 @@
namespace ref{
namespace result_of{
- template<typename T>
+ template<typename T>
struct empty_csv_array
- : nth_result_of::csv_array<0, T>{};
+ : nth_result_of::csv_array<0, T>{};
}// result_of
- template<typename T>
+ template<typename T>
typename result_of::empty_csv_array<T>::type
- csv_array( keyword_aux::nil )
+ csv_array( keyword_aux::nil )
{
typedef typename result_of::empty_csv_array<T>::type result_;
return result_();
@@ -121,17 +121,17 @@
template<typename T>\
typename nth_result_of::csv_array<n, T>::type\
csv_array( BOOST_PP_ENUM_PARAMS(n, T& _) ){ \
- return csv_array_aux::csv_array<T>( BOOST_PP_ENUM_PARAMS(n, _) );\
+ return csv_array_aux::csv_array<T>( BOOST_PP_ENUM_PARAMS(n, _) );\
}\
template<typename T>\
typename nth_result_of::csv_array<n, T const>::type\
csv_array( BOOST_PP_ENUM_PARAMS(n, T const& _) ){ \
- return csv_array_aux::csv_array<T const>( BOOST_PP_ENUM_PARAMS(n, _) );\
+ return csv_array_aux::csv_array<T const>( BOOST_PP_ENUM_PARAMS(n, _) );\
}\
/**/
BOOST_PP_REPEAT_FROM_TO(
- 1,
+ 1,
BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY),
BOOST_ASSIGN_V2_MACRO2,
~
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/csv/nth_result_of.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/csv/nth_result_of.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/csv/nth_result_of.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,18 +16,18 @@
#include <boost/assign/v2/ref/array/impl_traits.hpp>
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace ref{
namespace array_aux{
- typedef boost::use_default csv_tag2_;
+ typedef boost::use_default csv_tag2_;
}// array_aux
namespace nth_result_of{
template<std::size_t N, typename T>
struct csv_array
- {
+ {
typedef ref::array_tag1_ tag1_;
// typedef array_aux::instant_alloc<N, tag1_, T> type;
typedef array_aux::instant_alloc<N, T> type;
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/functor/make.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/functor/make.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/functor/make.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,32 +18,32 @@
namespace ref{
namespace result_of{
- template<typename T>
+ template<typename T>
struct empty_array
- : nth_result_of::array<0, T>{};
+ : nth_result_of::array<0, T>{};
- template<typename T>
+ template<typename T>
struct array
- : nth_result_of::array<1, T>{};
+ : nth_result_of::array<1, T>{};
}// result_of
- template<typename T>
+ template<typename T>
typename result_of::empty_array<T>::type
- array( keyword_aux::nil const& )
+ array( keyword_aux::nil const& )
{
- return ref::list<list_aux::array_tag>( v2::_nil );
+ return ref::list<list_aux::array_tag>( v2::_nil );
}
template<typename T>
- typename result_of::array<T>::type
+ typename result_of::array<T>::type
array(T& t)
{
return array<T>( v2::_nil )( t );
}
template<typename T>
- typename result_of::array<T const>::type
+ typename result_of::array<T const>::type
array(T const & t)
{
return array<T const>( v2::_nil )( t );
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/functor/nth_result_of.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/functor/nth_result_of.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/functor/nth_result_of.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,22 +23,22 @@
template<typename T>
struct empty_array : ref::empty_list<list_aux::array_tag>{};
- template<size_type N, typename T>
+ template<size_type N, typename T>
struct recursive_result
{
- typedef typename recursive_result<N-1, T>::type previous_;
+ typedef typename recursive_result<N-1, T>::type previous_;
typedef typename previous_::template result<T&>::type type;
};
- template<typename T>
+ template<typename T>
struct recursive_result<0, T> : empty_array<T>{};
}// array_aux
namespace nth_result_of{
template<array_aux::size_type N, typename T>
- struct array
- : array_aux::recursive_result<N, T>
+ struct array
+ : array_aux::recursive_result<N, T>
{};
}// nth_result_of
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/impl_traits.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/impl_traits.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/impl_traits.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,7 +23,7 @@
struct impl_traits
{
typedef T value_type;
- typedef Tag assign_tag;
+ typedef Tag assign_tag;
typedef typename ref::wrapper<assign_tag, value_type> wrapper_type;
typedef boost::array<wrapper_type,N> array_type;
};
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/interface.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/interface.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/interface.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -57,7 +57,7 @@
#ifndef BOOST_MSVC
typedef typename boost::range_size<impl_>::type size_type;
- #else
+ #else
typedef std::size_t size_type;
#endif
typedef typename boost::range_difference<range_>::type difference_type;
@@ -92,72 +92,72 @@
iterator begin()
{
- return boost::begin( this->wrappers() );
+ return boost::begin( this->wrappers() );
}
iterator end()
{
- return boost::end( this->wrappers() );
+ return boost::end( this->wrappers() );
}
const_iterator begin()const
{
- return boost::begin( this->wrappers() );
+ return boost::begin( this->wrappers() );
}
const_iterator end()const
{
- return boost::end( this->wrappers() );
+ return boost::end( this->wrappers() );
}
size_type size() const
{
- return this->wrappers().size();
+ return this->wrappers().size();
}
bool empty() const
{
- return this->wrappers().empty();
+ return this->wrappers().empty();
}
- void rebind(size_type i, result_of_get_ t)
+ void rebind(size_type i, result_of_get_ t)
{
- return (this->wrappers())[i].rebind( t );
+ return (this->wrappers())[i].rebind( t );
}
reference operator[](size_type i)
{
- return this->elem_impl( this->wrappers()[i] );
+ return this->elem_impl( this->wrappers()[i] );
}
const_reference operator[](size_type i)const
{
- return this->elem_impl( this->wrappers()[i] );
+ return this->elem_impl( this->wrappers()[i] );
}
reference front()
{
- return this->elem_impl( this->wrappers().front() );
+ return this->elem_impl( this->wrappers().front() );
}
const_reference front() const
{
- return this->elem_impl( this->wrappers().front() );
+ return this->elem_impl( this->wrappers().front() );
}
reference back()
{
- return this->elem_impl( this->wrappers().back() );
+ return this->elem_impl( this->wrappers().back() );
}
const_reference back() const
{
- return this->elem_impl( this->wrappers().back() );
+ return this->elem_impl( this->wrappers().back() );
}
void assign(param_type val)
{
- typedef ::boost::mpl::int_<0> int_;
- this->assign_impl( val, int_() );
+ typedef ::boost::mpl::int_<0> int_;
+ this->assign_impl( val, int_() );
}
protected:
void assign_impl(param_type val, ::boost::mpl::int_<static_size>)
{
- /* exit */
+ /* exit */
}
template<int i>
@@ -171,12 +171,12 @@
template<typename W>
reference elem_impl(W& w)
{
- return w; // w.get()
+ return w; // w.get()
}
template<typename W>
const_reference elem_impl(W & w)const
{
- return w; // w.get()
+ return w; // w.get()
}
public:
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/size_type.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/size_type.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/size_type.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -17,7 +17,7 @@
namespace ref{
namespace array_aux{
- typedef std::size_t size_type;
+ typedef std::size_t size_type;
}// array_aux
}// ref
Modified: sandbox/assign_v2/boost/assign/v2/ref/array/tag1.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/tag1.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/tag1.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -12,11 +12,11 @@
#include <boost/assign/v2/ref/wrapper/copy.hpp>
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace ref{
- typedef assign_tag::copy array_tag1_;
+ typedef assign_tag::copy array_tag1_;
}// ref
}// v2
}// assign
Modified: sandbox/assign_v2/boost/assign/v2/ref/convert_traits/checking.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/convert_traits/checking.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/convert_traits/checking.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -87,7 +87,7 @@
tester<const T1 , const T2 , const T3 >::test();
tester<const T1 , T2 , const T3 >::test();
- tester< T1 , const T2 , const T3 >::test();
+ tester< T1 , const T2 , const T3 >::test();
tester< T1 , T2 , T3 >::test();
}
@@ -95,8 +95,8 @@
#define BOOST_ASSIGN_V2_MACRO(T1, T2, T3) \
template<typename T> \
void do_check( \
- typename boost::enable_if< \
- boost::is_same<T,T1> \
+ typename boost::enable_if< \
+ boost::is_same<T,T1> \
>::type* = 0 \
) \
{ \
@@ -107,15 +107,15 @@
/*
// don't try to guess the supertype, it may vary by compiler.
namespace supertype_{
- typedef boost::numeric::conversion_traits<short, int>::supertype a_;
- typedef boost::numeric::conversion_traits<int, long>::supertype b_;
- typedef boost::numeric::conversion_traits<float, double>::supertype c_;
- typedef boost::numeric::conversion_traits<
- double,long double>::supertype d_;
+ typedef boost::numeric::conversion_traits<short, int>::supertype a_;
+ typedef boost::numeric::conversion_traits<int, long>::supertype b_;
+ typedef boost::numeric::conversion_traits<float, double>::supertype c_;
+ typedef boost::numeric::conversion_traits<
+ double,long double>::supertype d_;
}// supertype_
-BOOST_ASSIGN_V2_MACRO(short , int, supertype_::a_)
-BOOST_ASSIGN_V2_MACRO(int , long, supertype_::b_)
-BOOST_ASSIGN_V2_MACRO(float , double, supertype_::c_)
+BOOST_ASSIGN_V2_MACRO(short , int, supertype_::a_)
+BOOST_ASSIGN_V2_MACRO(int , long, supertype_::b_)
+BOOST_ASSIGN_V2_MACRO(float , double, supertype_::c_)
typedef long double long_double_;
BOOST_ASSIGN_V2_MACRO(double , long_double_, workaround::d_)
#undef BOOST_ASSIGN_V2_MACRO
Modified: sandbox/assign_v2/boost/assign/v2/ref/convert_traits/const.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/convert_traits/const.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/convert_traits/const.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,21 +21,21 @@
namespace convert_traits{
template<
- typename T1, typename T2, bool is_c
- = boost::is_const<T1>::value || boost::is_const<T2>::value
+ typename T1, typename T2, bool is_c
+ = boost::is_const<T1>::value || boost::is_const<T2>::value
>
struct const_
{
- typedef typename convert_traits::value<
- typename boost::remove_cv<T1>::type,
- typename boost::remove_cv<T2>::type
+ typedef typename convert_traits::value<
+ typename boost::remove_cv<T1>::type,
+ typename boost::remove_cv<T2>::type
>::type type;
};
template<typename T1, typename T2>
struct const_<T1, T2, true> : boost::add_const<
- typename const_<T1, T2, false>::type
+ typename const_<T1, T2, false>::type
>{};
}// convert_traits
Modified: sandbox/assign_v2/boost/assign/v2/ref/convert_traits/reference.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/convert_traits/reference.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/convert_traits/reference.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -20,8 +20,8 @@
template<typename U1, typename U2>
struct reference : convert_traits::const_<
- typename boost::remove_reference<U1>::type,
- typename boost::remove_reference<U2>::type
+ typename boost::remove_reference<U1>::type,
+ typename boost::remove_reference<U2>::type
>{};
template<typename T>
Modified: sandbox/assign_v2/boost/assign/v2/ref/convert_traits/value.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/convert_traits/value.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/convert_traits/value.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,7 +18,7 @@
namespace convert_traits{
template<
- typename V1, typename V2,
+ typename V1, typename V2,
bool is_c1 = boost::is_convertible<V1, V2>::value,
bool is_c2 = boost::is_convertible<V2, V1>::value
>
@@ -30,12 +30,12 @@
template<typename V1, typename V2> struct value<V1, V2, false, false>{};
// TODO upgrade
- // #include <boost/type_traits/is_arithmetic.hpp>
+ // #include <boost/type_traits/is_arithmetic.hpp>
// #include <boost/numeric/conversion/conversion_traits.hpp>
- // struct value : ::boost::mpl::eval_if<
- // mpl::and_<is_arithmetic<V1>, is_arithmetic<V2> >,
- // boost::numeric::conversion_traits<V1, V2>::supertype.
- // ... as above ...
+ // struct value : ::boost::mpl::eval_if<
+ // mpl::and_<is_arithmetic<V1>, is_arithmetic<V2> >,
+ // boost::numeric::conversion_traits<V1, V2>::supertype.
+ // ... as above ...
// >{};
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/array/policy.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/array/policy.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/array/policy.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -28,83 +28,83 @@
// -- Fits the (linked) list with an array-like interface
- typedef alloc_tag::lazy_alloc array_tag;
+ typedef alloc_tag::lazy_alloc array_tag;
- // policy_helperx<> extracts from the list the value-type for the array
+ // policy_helperx<> extracts from the list the value-type for the array
- template<
- typename U1 // old result
+ template<
+ typename U1 // old result
, typename U2 // candidate
, typename V1 = typename boost::remove_cv<U1>::type
, typename V2 = typename boost::remove_cv<U2>::type
>
struct policy_helper1
{
- // Un-defined bec. V1 and V2 must be identical
+ // Un-defined bec. V1 and V2 must be identical
};
template<typename U1, typename U2, typename V>
struct policy_helper1<U1, U2, V, V> : boost::mpl::eval_if<
- boost::is_const<U1>
+ boost::is_const<U1>
, ::boost::mpl::identity<U1>
, ::boost::mpl::identity<U2>
>{
- // If one const, always const.
+ // If one const, always const.
};
-
+
template<typename U1 // old result
- ,typename U2, typename L // container<Tag, U2, L>
+ ,typename U2, typename L // container<Tag, U2, L>
>
struct policy_helper2
{
- typedef typename policy_helper1<U1, U2>::type new_u1_;
- typedef typename head_value<L>::type prior_u2_;
+ typedef typename policy_helper1<U1, U2>::type new_u1_;
+ typedef typename head_value<L>::type prior_u2_;
typedef typename tail_of<L>::type prior_l_;
- typedef typename policy_helper2<
- new_u1_, prior_u2_, prior_l_
+ typedef typename policy_helper2<
+ new_u1_, prior_u2_, prior_l_
>::type type;
};
template<typename U1>
struct policy_helper2<U1, void_, nil >
{
- // Reached root
- typedef U1 type;
+ // Reached root
+ typedef U1 type;
};
- template<typename U2, typename L>
- struct policy_helper3 : policy_helper2<
- U2
+ template<typename U2, typename L>
+ struct policy_helper3 : policy_helper2<
+ U2
, typename head_value<L>::type
, typename tail_of<L>::type
>{};
- template<>
- struct policy_helper3<void_, nil >
+ template<>
+ struct policy_helper3<void_, nil >
{
- // Empty container
- typedef void_ type;
+ // Empty container
+ typedef void_ type;
};
template<>
struct policy<array_tag>
{
- template<typename H = void_, typename T = nil>
- struct apply
+ template<typename H = void_, typename T = nil>
+ struct apply
{
typedef alloc_tag::lazy_alloc tag_;
- typedef list_aux::container<tag_, H, T> derived_;
- typedef typename boost::remove_reference<H>::type u1_;
+ typedef list_aux::container<tag_, H, T> derived_;
+ typedef typename boost::remove_reference<H>::type u1_;
typedef typename list_aux::policy_helper3<u1_, T>::type value_;
- typedef array_aux::lazy_alloc<
- tail_holder<T>::size::value
+ typedef array_aux::lazy_alloc<
+ tail_holder<T>::size::value
,value_
,derived_
> type;
};
- };
+ };
}// list_aux
}// ref
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/array/rebind.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/array/rebind.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/array/rebind.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -19,32 +19,32 @@
#include <boost/assign/v2/ref/list/size_type.hpp>
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace ref{
namespace list_aux{
template<
- size_type K,typename A,
+ size_type K,typename A,
typename Tag, typename H, typename T
>
void assign_array(
- ::boost::mpl::true_ /*exit*/,
- A& a,
+ ::boost::mpl::true_ /*exit*/,
+ A& a,
const list_aux::container<Tag, H, T>& l
)
{
- /*exit*/
+ /*exit*/
}
template<
- size_type K,typename A,
+ size_type K,typename A,
typename Tag, typename H, typename T
>
void assign_array(
- ::boost::mpl::false_ /*exit*/,
- A& a,
+ ::boost::mpl::false_ /*exit*/,
+ A& a,
const list_aux::container<Tag, H, T>& l
)
{
@@ -56,15 +56,15 @@
assign_array<K-1>( exit_(), a, l );
}
- // A must be a static array of reference wrappers
+ // A must be a static array of reference wrappers
template<typename A, typename Tag, typename H, typename T>
void assign_array(
- A& a,
+ A& a,
list_aux::container<Tag, H, T> const & l
)
{
typedef list_aux::container<Tag, H, T> list_;
- BOOST_STATIC_ASSERT( A::static_size <= list_::size::value );
+ BOOST_STATIC_ASSERT( A::static_size <= list_::size::value );
typedef ::boost::mpl::int_<0> zero_;
typedef ::boost::mpl::int_<A::static_size> size_;
typedef typename ::boost::mpl::equal_to<size_, zero_>::type exit_;
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/at.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/at.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/at.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -30,40 +30,40 @@
namespace result_of{
- template<size_type I, typename T>
+ template<size_type I, typename T>
struct at : ::boost::mpl::eval_if<
- list_aux::is_head<I, T>
+ list_aux::is_head<I, T>
,head_reference<T>
,result_of::at<I, typename tail_of<T>::type>
>{};
}// result_of
- template<size_type I, typename T>
+ template<size_type I, typename T>
typename boost::lazy_enable_if<
- list_aux::is_head<I, T>,
- list_aux::result_of::at<I, T>
+ list_aux::is_head<I, T>,
+ list_aux::result_of::at<I, T>
>::type
at_helper(T const& t)
{
- return t.head();
+ return t.head();
}
- template<size_type I, typename T>
+ template<size_type I, typename T>
typename boost::lazy_disable_if<
- is_head<I, T>,
- list_aux::result_of::at<I, T>
+ is_head<I, T>,
+ list_aux::result_of::at<I, T>
>::type
at_helper(T const& t)
{
- return at_helper<I>( t.tail() );
+ return at_helper<I>( t.tail() );
}
- template<size_type I, typename Tag, typename H, typename T>
+ template<size_type I, typename Tag, typename H, typename T>
typename list_aux::result_of::at<I, container<Tag, H, T> >::type
at(container<Tag, H, T> const& t)
{
- return at_helper<I>( t );
+ return at_helper<I>( t );
}
}// list_aux
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/container.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/container.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/container.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -30,7 +30,7 @@
template<typename Tag, typename H, typename T>
class container :
- public head_holder<H>,
+ public head_holder<H>,
public tail_holder<T>,
public ::boost::mpl::apply2<policy<Tag>, H, T>::type
{
@@ -62,14 +62,14 @@
template<typename H1>
typename result<H1>::type
operator()(H1&& h)const{
- typedef typename result<H1>::type result_;
- return result_( std::forward<H1>( h ), *this);
+ typedef typename result<H1>::type result_;
+ return result_( std::forward<H1>( h ), *this);
}
#else */
explicit container(
- H h,
+ H h,
typename boost::call_traits<T>::param_type t
)
: head_holder_( h ), tail_holder_( t )
@@ -78,15 +78,15 @@
template<typename H1>
typename result<H1&>::type
operator()(H1& h)const{
- typedef typename result<H1&>::type result_;
- return result_( h, *this);
+ typedef typename result<H1&>::type result_;
+ return result_( h, *this);
}
template<typename H1>
typename result<H1 const&>::type
operator()(H1 const& h)const{
- typedef typename result<H1 const&>::type result_;
- return result_( h, *this);
+ typedef typename result<H1 const&>::type result_;
+ return result_( h, *this);
}
// #endif
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/converter.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/converter.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/converter.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,7 +22,7 @@
#define U container<Tag, H, T>
BOOST_ASSIGN_V2_CONVERTER(U, SEQ)
#undef U
-#undef SEQ
+#undef SEQ
}// list_aux
}// ref
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/fwd.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/fwd.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/fwd.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -11,15 +11,15 @@
#define BOOST_ASSIGN_V2_REF_LIST_FWD_ER_2010_HPP
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace ref{
namespace list_aux{
- template<typename Tag> struct empty_list;
+ template<typename Tag> struct empty_list;
- struct void_;
+ struct void_;
struct nil;
template<typename Tag, typename H = void_, typename T = nil>
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/holder/head.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/holder/head.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/holder/head.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -26,53 +26,53 @@
/* // TODO as standalone ok, but unsure effects in relation with ref-arrays
#ifndef BOOST_NO_RVALUE_REFERENCES
- template<typename T>
- struct head_holder{
+ template<typename T>
+ struct head_holder{
- typedef T head_value_type;
+ typedef T head_value_type;
- explicit head_holder(T&& t)
- : head(
- std::move( t )
+ explicit head_holder(T&& t)
+ : head(
+ std::move( t )
){}
T&& head;
- };
+ };
#else */
- template<typename T> struct head_holder{
- // undefined
+ template<typename T> struct head_holder{
+ // undefined
};
//#endif
- template<typename T> struct head_holder<T&>{
+ template<typename T> struct head_holder<T&>{
- typedef T head_value_type;
+ typedef T head_value_type;
explicit head_holder(T& t) : head_( t ){}
- typedef T& result_of_head_type;
- result_of_head_type head()const{ return this->head_; }
+ typedef T& result_of_head_type;
+ result_of_head_type head()const{ return this->head_; }
- private:
- mutable T& head_;
+ private:
+ mutable T& head_;
};
template<>
struct head_holder<void_>
{
- typedef void_ head_value_type;
+ typedef void_ head_value_type;
head_holder(){}
};
- template<typename T>
+ template<typename T>
struct head_value{ typedef typename T::head_value_type type; };
- template<typename T>
+ template<typename T>
struct head_reference
- : boost::add_reference<typename head_value<T>::type>
+ : boost::add_reference<typename head_value<T>::type>
{};
}// list_aux
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/holder/tail.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/holder/tail.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/holder/tail.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -19,12 +19,12 @@
namespace ref{
namespace list_aux{
- struct nil{ nil(){} };
+ struct nil{ nil(){} };
- template<typename T>
+ template<typename T>
struct tail_holder
{
- typedef T tail_type;
+ typedef T tail_type;
typedef ::boost::mpl::int_<T::size::value+1> size;
tail_holder(T const& t) : tail_( t ){}
@@ -32,18 +32,18 @@
result_of_tail_type tail()const{ return this->tail_; }
private:
- T const& tail_;
+ T const& tail_;
};
- template<>
+ template<>
struct tail_holder<nil>
{
typedef nil tail_type;
typedef ::boost::mpl::int_<0> size;
- tail_holder(){}
+ tail_holder(){}
};
- template<typename T>
+ template<typename T>
struct tail_of{ typedef typename T::tail_type type; };
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/make.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/make.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/make.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -13,20 +13,20 @@
#include <boost/assign/v2/ref/list/container.hpp>
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace ref{
- template<typename Tag>
+ template<typename Tag>
struct empty_list{ typedef list_aux::container<Tag> type; };
- template<typename Tag>
+ template<typename Tag>
typename empty_list<Tag>::type
list( keyword_aux::nil )
{
- typedef typename empty_list<Tag>::type result_;
- return result_();
+ typedef typename empty_list<Tag>::type result_;
+ return result_();
}
}// ref
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/nth_result_of.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/nth_result_of.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/nth_result_of.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,35 +23,35 @@
namespace list_aux{
template<typename Tag>
- struct nth_result
+ struct nth_result
{
- typedef typename ref::empty_list<Tag>::type state_;
+ typedef typename ref::empty_list<Tag>::type state_;
- template<typename State, typename T>
+ template<typename State, typename T>
struct result : State::template result<T>{};
- template<typename Vec>
- struct apply : ::boost::mpl::fold<
- Vec,
+ template<typename Vec>
+ struct apply : ::boost::mpl::fold<
+ Vec,
state_,
result< ::boost::mpl::_1, ::boost::mpl::_2>
>{};
- };
+ };
}// fusion_aux
namespace nth_result_of{
- template<typename Tag>
- struct list
+ template<typename Tag>
+ struct list
{
template<typename Vec>
struct apply : ::boost::mpl::apply1<
- list_aux::nth_result<Tag>,
- Vec
+ list_aux::nth_result<Tag>,
+ Vec
>{};
- };
+ };
}// nth_result_of
}// ref
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/policy.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/policy.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/policy.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,9 +18,9 @@
namespace ref{
namespace list_aux{
- // --- Default policy
- template<typename Tag> struct policy : ::boost::mpl::always<
- ::boost::mpl::empty_base
+ // --- Default policy
+ template<typename Tag> struct policy : ::boost::mpl::always<
+ ::boost::mpl::empty_base
>{};
}// list_aux
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/size_type.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/size_type.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/size_type.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,7 +16,7 @@
namespace ref{
namespace list_aux{
- typedef int size_type;
+ typedef int size_type;
}// list_aux
}// ref
Modified: sandbox/assign_v2/boost/assign/v2/ref/list_tuple/cpp03/container.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list_tuple/cpp03/container.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list_tuple/cpp03/container.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -95,7 +95,7 @@
};
template<list_tuple_aux::get_size_type N,
- typename L, params_default(typename T, na_type)>
+ typename L, params_default(typename T, na_type)>
class container;
template<list_tuple_aux::get_size_type N, typename L,
@@ -106,7 +106,7 @@
typedef list_tuple_aux::container<N, L, params(T)> this_;
- template<params_default(typename U, na_type)>
+ template<params_default(typename U, na_type)>
struct apply
{
typedef container<
@@ -116,7 +116,7 @@
> type;
};
- };
+ };
template<list_tuple_aux::get_size_type N, typename L,
params_default(typename T, na_type)>
@@ -127,9 +127,9 @@
typedef list_tuple_aux::extraction<N, L, tuple_, cont_> extraction_;
typedef list_tuple_aux::meta_result<N, L, params(T)> meta_result_;
typedef functor_aux::crtp_unary_and_up<
- cont_,
- boost::mpl::unpack_args<meta_result_>
- > crtp_;
+ cont_,
+ boost::mpl::unpack_args<meta_result_>
+ > crtp_;
typedef typename ::boost::mpl::eval_if_c<
N == 0,
::boost::mpl::identity< ::boost::mpl::empty_base >,
@@ -186,8 +186,8 @@
= boost::tuples::detail::cnull()\
/**/
explicit container(
- const L& l,
- BOOST_ASSIGN_V2_MACRO1(T0,_0) // (*)
+ const L& l,
+ BOOST_ASSIGN_V2_MACRO1(T0,_0) // (*)
BOOST_PP_ENUM_TRAILING(
BOOST_PP_DEC(BOOST_ASSIGN_V2_LIMIT_ARITY),
BOOST_ASSIGN_V2_MACRO,
@@ -211,8 +211,8 @@
typename result<>::type
operator()()const{
- typedef typename result<>::type result_;
- return result_( *this );
+ typedef typename result<>::type result_;
+ return result_( *this );
}
#define BOOST_ASSIGN_V2_MACRO(z, n, data)\
@@ -230,7 +230,7 @@
}\
/**/
BOOST_PP_REPEAT_FROM_TO(
- 1,
+ 1,
BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_ARITY),
BOOST_ASSIGN_V2_MACRO,
~
Modified: sandbox/assign_v2/boost/assign/v2/ref/list_tuple/cpp0x/container.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list_tuple/cpp0x/container.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list_tuple/cpp0x/container.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -30,7 +30,7 @@
namespace list_tuple_aux{
template<list_tuple_aux::get_size_type N,
- typename L, typename...Args> class container;
+ typename L, typename...Args> class container;
template<list_tuple_aux::get_size_type N, typename L, typename...Args>
struct meta_result
@@ -38,7 +38,7 @@
typedef container<N, L, Args...> this_;
- template<typename... Args1>
+ template<typename... Args1>
struct apply
{
typedef container<
@@ -48,7 +48,7 @@
> type;
};
- };
+ };
template<typename NewState>
struct result
Modified: sandbox/assign_v2/boost/assign/v2/ref/list_tuple/extraction.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list_tuple/extraction.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list_tuple/extraction.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,7 +23,7 @@
namespace list_tuple_aux{
template<list_tuple_aux::get_size_type N,
- typename L, typename T, typename D>
+ typename L, typename T, typename D>
class extraction
{
typedef D const& result_of_derived_;
@@ -42,29 +42,29 @@
template<list_tuple_aux::get_size_type I>
struct link_get_result : L::template get_result<I>{};
- template<list_tuple_aux::get_size_type I>
- struct get_result : ::boost::mpl::eval_if<
- is_head<I>,
+ template<list_tuple_aux::get_size_type I>
+ struct get_result : ::boost::mpl::eval_if<
+ is_head<I>,
::boost::mpl::identity<
- T const&
+ T const&
>,
link_get_result<I>
>{};
template<list_tuple_aux::get_size_type I>
typename boost::lazy_enable_if<
- is_head<I>,
- get_result<I>
+ is_head<I>,
+ get_result<I>
>::type
get(boost::mpl::int_<I> index)const
{
- return this->derived().get_tuple();
+ return this->derived().get_tuple();
}
template<list_tuple_aux::get_size_type I>
typename boost::lazy_disable_if<
- is_head<I>,
- get_result<I>
+ is_head<I>,
+ get_result<I>
>::type
get( ::boost::mpl::int_<I> index )const
{
Modified: sandbox/assign_v2/boost/assign/v2/ref/list_tuple/nth_result_of.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list_tuple/nth_result_of.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list_tuple/nth_result_of.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -27,7 +27,7 @@
struct forward_op{
- template<typename NewState, typename Vec>
+ template<typename NewState, typename Vec>
struct apply{
typedef list_tuple_aux::result<NewState> meta_;
typedef ::boost::mpl::unpack_args< meta_ > g_;
@@ -37,18 +37,18 @@
>::type type;
};
- };
+ };
public:
- template<typename VecTypes>
- struct apply : ::boost::mpl::fold<
+ template<typename VecTypes>
+ struct apply : ::boost::mpl::fold<
VecTypes,
state_,
forward_op
>{};
- };
+ };
}// nth_result_of
}// ref
Modified: sandbox/assign_v2/boost/assign/v2/ref/wrapper/adaptor_get.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/wrapper/adaptor_get.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/wrapper/adaptor_get.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -34,16 +34,16 @@
template<typename R>
struct range_get{
- typedef ref::get_functor f_;
+ typedef ref::get_functor f_;
#ifdef BOOST_MSVC
- typedef boost::iterator_range<
+ typedef boost::iterator_range<
boost::transform_iterator< f_,
BOOST_DEDUCED_TYPENAME boost::range_iterator<R>::type
>
> type;
#else
- typedef boost::range_detail::transform_range<f_, R> type;
- #endif
+ typedef boost::range_detail::transform_range<f_, R> type;
+ #endif
};
}// result_of
@@ -54,13 +54,13 @@
{
typedef typename range_aux::result_of::range_get<R>::type result_;
#ifdef BOOST_MSVC
- return result_(
- boost::make_transform_iterator( boost::begin(r), get_functor() ),
- boost::make_transform_iterator( boost::end(r), get_functor() )
+ return result_(
+ boost::make_transform_iterator( boost::begin(r), get_functor() ),
+ boost::make_transform_iterator( boost::end(r), get_functor() )
);
#else
return result_(get_functor(), r);
- #endif
+ #endif
}
template<typename R>
typename range_aux::result_of::range_get<R const>::type
@@ -68,13 +68,13 @@
{
typedef typename range_aux::result_of::range_get<R const>::type result_;
#ifdef BOOST_MSVC
- return result_(
- boost::make_transform_iterator( boost::begin(r), get_functor() ),
- boost::make_transform_iterator( boost::end(r), get_functor() )
+ return result_(
+ boost::make_transform_iterator( boost::begin(r), get_functor() ),
+ boost::make_transform_iterator( boost::end(r), get_functor() )
);
#else
return result_(get_functor(), r);
- #endif
+ #endif
}
struct get_adaptor{};
@@ -97,7 +97,7 @@
template<typename R>
struct range_get : boost::lazy_enable_if<
- boost::is_reference_wrapper<
+ boost::is_reference_wrapper<
typename boost::range_value<
typename boost::remove_cv<R>::type
>::type
Modified: sandbox/assign_v2/boost/assign/v2/ref/wrapper/copy.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/wrapper/copy.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/wrapper/copy.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -26,7 +26,7 @@
template< class T >
struct wrapper<ref::assign_tag::copy, T>
:
- public ref::wrapper_crtp< wrapper<ref::assign_tag::copy, T>, T>
+ public ref::wrapper_crtp< wrapper<ref::assign_tag::copy, T>, T>
{
typedef T type;
BOOST_STATIC_CONSTANT(
@@ -40,9 +40,9 @@
{ }
void rebind(T& r )
- {
+ {
this->ref_ = &r;
- }
+ }
// TODO a) crtp b) reference() or get()
typedef T& get_type;
@@ -61,7 +61,7 @@
}
protected:
- friend class wrapper_crtp<wrapper, T>;
+ friend class wrapper_crtp<wrapper, T>;
T* ref_;
Modified: sandbox/assign_v2/boost/assign/v2/ref/wrapper/cpp0x.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/wrapper/cpp0x.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/wrapper/cpp0x.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -24,7 +24,7 @@
// Maps T appearing in an rvalue reference T&& to the type appropriate
// as the parameter of a reference wrapper.
- template<typename T>
+ template<typename T>
struct wrapper_param : boost::add_const<T>
{
// rvalue
@@ -32,10 +32,10 @@
// lvalue:
- template<typename T>
+ template<typename T>
struct wrapper_param<T&>
{
- typedef T type;
+ typedef T type;
};
}// ref
Modified: sandbox/assign_v2/boost/assign/v2/ref/wrapper/crtp.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/wrapper/crtp.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/wrapper/crtp.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -44,8 +44,8 @@
>
{
- typedef typename boost::remove_const<T>::type lvalue_;
- typedef typename boost::add_const<T>::type rvalue_;
+ typedef typename boost::remove_const<T>::type lvalue_;
+ typedef typename boost::add_const<T>::type rvalue_;
public:
// protected
@@ -56,7 +56,7 @@
public:
void operator=(lvalue_& r ){ this->derived().assign( r ); }
- void operator=(rvalue_& r ){ this->derived().assign( r ); }
+ void operator=(rvalue_& r ){ this->derived().assign( r ); }
void swap( wrapper_crtp& r )
{
@@ -93,19 +93,19 @@
return this->derived().get() > r;
}
- template<class CharT, class Traits>
- friend std::basic_ostream<CharT,Traits>&
- operator<<(std::basic_ostream<CharT,Traits>& os,
- const wrapper_crtp& w)
- {
- return (os << w.derived().get() );
- }
+ template<class CharT, class Traits>
+ friend std::basic_ostream<CharT,Traits>&
+ operator<<(std::basic_ostream<CharT,Traits>& os,
+ const wrapper_crtp& w)
+ {
+ return (os << w.derived().get() );
+ }
};
- template<typename D,typename T>
- void rebind( wrapper_crtp<D,T>& a, T& r ){ a.rebind( r ); }
+ template<typename D,typename T>
+ void rebind( wrapper_crtp<D,T>& a, T& r ){ a.rebind( r ); }
template<typename D,typename T>
inline void swap( wrapper_crtp<D,T>& l, wrapper_crtp<D,T>& r )
Modified: sandbox/assign_v2/boost/assign/v2/ref/wrapper/framework.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/wrapper/framework.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/wrapper/framework.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,13 +15,13 @@
namespace v2{
namespace ref{
- template<typename Tag,typename T>
+ template<typename Tag,typename T>
struct wrapper{
// specialize on Tag
};
namespace result_of{
- template<typename Tag, typename T>
+ template<typename Tag, typename T>
struct wrap{
typedef ref::wrapper<Tag,T> type;
};
Modified: sandbox/assign_v2/boost/assign/v2/ref/wrapper/get.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/wrapper/get.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/wrapper/get.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -24,7 +24,7 @@
template<typename T>
struct get : boost::add_reference<
typename boost::unwrap_reference<
- // cv taken care of by unwrap_reference
+ // cv taken care of by unwrap_reference
typename boost::remove_reference<T>::type
>::type
>{};
@@ -33,12 +33,12 @@
template<typename W>
typename boost::lazy_enable_if<
- boost::is_reference_wrapper<W>,
+ boost::is_reference_wrapper<W>,
ref::result_of::get<W>
>::type
get(W const& w)
{
- return w.get();
+ return w.get();
}
// Functor
@@ -46,21 +46,21 @@
struct get_functor
{
- template<typename S>
+ template<typename S>
struct result{};
template<typename F, typename T>
struct result<F(T)> : ref::result_of::get<T>{};
- template<typename W>
- typename boost::lazy_enable_if<
+ template<typename W>
+ typename boost::lazy_enable_if<
boost::is_reference_wrapper<W>,
ref::result_of::get<W>
- >::type
+ >::type
operator()(W const& w)const
{
return get( w );
- }
+ }
};
Modified: sandbox/assign_v2/boost/assign/v2/utility/chain.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/chain.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/chain.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -13,6 +13,6 @@
#include <boost/assign/v2/utility/chain/pipe.hpp>
// While && is convenient it's safer not to include it by default
-// #include <boost/assign/v2/utility/chain/short.hpp>
+// #include <boost/assign/v2/utility/chain/short.hpp>
#endif
Modified: sandbox/assign_v2/boost/assign/v2/utility/chain/adaptor.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/chain/adaptor.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/chain/adaptor.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -29,7 +29,7 @@
};
template<
- typename Tag1 = use_default,
+ typename Tag1 = use_default,
typename Tag2 = void_
>
struct adaptor2
@@ -46,20 +46,20 @@
template<typename R>
typename result<R>::type
operator()(R& r)const{
- return result<R>::call ( r );
+ return result<R>::call ( r );
}
template<typename R>
typename result<R const>::type
operator()(R const& r)const{
- return result<R const>::call( r );
+ return result<R const>::call( r );
}
};
}// chain_aux
namespace{
- const chain_aux::adaptor2<> _chain = chain_aux::adaptor2<>();
+ const chain_aux::adaptor2<> _chain = chain_aux::adaptor2<>();
}
}// v2
}// assign
Modified: sandbox/assign_v2/boost/assign/v2/utility/chain/check.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/chain/check.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/chain/check.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -44,25 +44,25 @@
template<bool x, typename T>
struct add_const_if : ::boost::mpl::eval_if_c<
- x, boost::add_const<T>, ::boost::mpl::identity<T>
+ 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;
+ namespace as2 = assign::v2;
// Value container
typedef std::vector<T> vec_t_;
typedef typename add_const_if<qual_v1, vec_t_ >::type vec1_;
typedef typename as2::ref::copy_wrapper<
- typename add_const_if<qual_e2, T>::type
+ typename add_const_if<qual_e2, T>::type
>::type w_;
- typedef vec1_ r1_; // alias
+ typedef vec1_ r1_; // alias
// Ref-wrappers
typedef std::vector<w_> vec_w_;
typedef typename add_const_if<qual_v2, vec_w_ >::type vec2_;
- // Transformation through range_get (necessary)
+ // Transformation through range_get (necessary)
typedef typename ref::result_of::range_get<vec2_>::type r2_;
{
@@ -83,60 +83,60 @@
void static_()
{
{
- typedef std::vector<T> vec_;
- typedef v2::result_of::chain<vec_, vec_> caller1_;
- typedef typename caller1_::type range1_;
- typedef typename boost::range_reference<range1_>::type ref1_;
+ typedef std::vector<T> vec_;
+ typedef v2::result_of::chain<vec_, vec_> caller1_;
+ typedef typename caller1_::type range1_;
+ typedef typename boost::range_reference<range1_>::type ref1_;
BOOST_MPL_ASSERT(( boost::is_same<ref1_, T&> ));
- typedef v2::result_of::chain<range1_ const, vec_> caller2_;
- typedef typename caller2_::type range2_;
- typedef typename boost::range_reference<range2_>::type ref2_;
- BOOST_MPL_ASSERT(( boost::is_same<ref2_, T&> ));
- }
+ typedef v2::result_of::chain<range1_ const, vec_> caller2_;
+ typedef typename caller2_::type range2_;
+ typedef typename boost::range_reference<range2_>::type ref2_;
+ BOOST_MPL_ASSERT(( boost::is_same<ref2_, T&> ));
+ }
// 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 >();
+ 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 >();
- }
+ }
template<typename T>
void exec()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
typedef std::vector<T> vt_;
vt_ vt1( 2 ), vt2( 3 ), vt3( 3 );
vt_ vt;
{
// Value containers
- vt.push_back( 1 ); // 1
- vt.push_back( 2 ); // 2
+ vt.push_back( 1 ); // 1
+ vt.push_back( 2 ); // 2
- vt.push_back( -5 ); // 1
- vt.push_back( 4 ); // 2
- vt.push_back( 3 ); // 3
-
- vt.push_back( -7 ); // 1
- vt.push_back( 8 ); // 2
- vt.push_back( 9 ); // 3
+ vt.push_back( -5 ); // 1
+ vt.push_back( 4 ); // 2
+ vt.push_back( 3 ); // 3
+
+ vt.push_back( -7 ); // 1
+ vt.push_back( 8 ); // 2
+ vt.push_back( 9 ); // 3
BOOST_ASSIGN_V2_CHECK( // pre-condition
vt1.size() + vt2.size() + vt3.size() == vt.size()
);
}
{
- // Value container
+ // Value container
boost::copy(
vt,
boost::begin( vt1 | as2::_chain( vt2 ) | as2::_chain( vt3 ) )
);
BOOST_ASSIGN_V2_CHECK(
- boost::equal( vt1 | as2::_chain( vt2 ) , vt )
+ boost::equal( vt1 | as2::_chain( vt2 ) , vt )
);
}
{
Modified: sandbox/assign_v2/boost/assign/v2/utility/chain/iterator.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/chain/iterator.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/chain/iterator.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,13 +21,13 @@
namespace v2{
namespace chain_aux{
- template<
- typename It1,
+ template<
+ typename It1,
typename It2,
typename Tag
>
- struct iterator
- {
+ struct iterator
+ {
typedef typename boost::iterator_reference<It1>::type ref1_;
typedef typename boost::iterator_reference<It2>::type ref2_;
@@ -42,15 +42,15 @@
- typedef boost::range_detail::join_iterator<
- It1
- ,It2
- ,value_type
- ,reference
+ typedef boost::range_detail::join_iterator<
+ It1
+ ,It2
+ ,value_type
+ ,reference
// , boost::single_pass_traversal_tag
- > type;
+ > type;
- };
+ };
}// chain_aux
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/utility/chain/pipe.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/chain/pipe.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/chain/pipe.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,8 +18,8 @@
// Design:
// - Original design was boost::chain in RangeEx
// - ER modified as follows:
-// - sets the underlying iterator's Reference to one which both inputs are
-// convertible to, and is lvalue-preserving
+// - sets the underlying iterator's Reference to one which both inputs are
+// convertible to, and is lvalue-preserving
// - Finally, MPG proposed a way to compose chains http://gist.github.com/287791
namespace boost{
Modified: sandbox/assign_v2/boost/assign/v2/utility/chain/range.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/chain/range.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/chain/range.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -27,31 +27,31 @@
typename F<R2>::type,
Tag
>::type iterator_t;
- typedef boost::iterator_range< iterator_t > type;
+ typedef boost::iterator_range< iterator_t > type;
static type call(R1& r1, R2& r2)
{
BOOST_CONCEPT_ASSERT((SinglePassRangeConcept<R1>));
BOOST_CONCEPT_ASSERT((SinglePassRangeConcept<R2>));
- namespace ns = boost::range_detail;
+ namespace ns = boost::range_detail;
// typedef ns::chain_iterator_begin_tag begin_tag_;
// typedef ns::chain_iterator_end_tag end_tag_;
typedef ns::join_iterator_begin_tag begin_tag_;
typedef ns::join_iterator_end_tag end_tag_;
- return type(
- iterator_t(r1, r2, begin_tag_()),
- iterator_t(r1, r2, end_tag_())
- );
+ return type(
+ iterator_t(r1, r2, begin_tag_()),
+ iterator_t(r1, r2, end_tag_())
+ );
}
};
template<typename R1, typename R2, typename Tag>
struct range_l
- : chain_aux::range< R1, R2, boost::range_iterator,Tag>{};
+ : chain_aux::range< R1, R2, boost::range_iterator,Tag>{};
template<typename R1, typename R2, typename Tag>
struct range_r
- : chain_aux::range<R1, R2, boost::range_const_iterator,Tag>{};
+ : chain_aux::range<R1, R2, boost::range_const_iterator,Tag>{};
}// chain_aux
}// v2
Modified: sandbox/assign_v2/boost/assign/v2/utility/chain/result.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/chain/result.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/chain/result.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,11 +21,11 @@
template<typename R1,typename R2,typename Tag = use_default>
struct result{
- typedef typename ::boost::mpl::eval_if<
- chain_aux::use_lvalue<R1,R2,Tag>,
- boost::mpl::identity< chain_aux::range_l<R1, R2, Tag> >,
- boost::mpl::identity< chain_aux::range_r<R1, R2, Tag> >
- >::type caller_;
+ typedef typename ::boost::mpl::eval_if<
+ chain_aux::use_lvalue<R1,R2,Tag>,
+ boost::mpl::identity< chain_aux::range_l<R1, R2, Tag> >,
+ boost::mpl::identity< chain_aux::range_r<R1, R2, Tag> >
+ >::type caller_;
typedef typename caller_::type type;
Modified: sandbox/assign_v2/boost/assign/v2/utility/chain/short.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/chain/short.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/chain/short.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -20,8 +20,8 @@
#define BOOST_ASSIGN_V2_MACRO(U1, U2) \
template<typename R1,typename R2> \
typename chain_aux::result< \
- U1, \
- U2 \
+ U1,\
+ U2 \
>::type \
operator&&(U1& r1, U2 & r2) \
{ \
Modified: sandbox/assign_v2/boost/assign/v2/utility/chain/use_lvalue.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/chain/use_lvalue.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/chain/use_lvalue.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,26 +21,26 @@
#include <boost/range/reference.hpp>
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace chain_aux{
- template<typename U1, typename U2,
- bool is_r = boost::is_reference<U1>::value,
+ template<typename U1, typename U2,
+ bool is_r = boost::is_reference<U1>::value,
bool is_c = boost::is_const<
- typename boost::remove_reference<U1>::type
+ typename boost::remove_reference<U1>::type
>::value
>
struct use_lvalue_impl : ::boost::mpl::false_{};
- template<typename U>
+ template<typename U>
struct use_lvalue_impl<U, U, true, false> : ::boost::mpl::true_{};
template<typename R1, typename R2, typename Tag = use_default>
struct use_lvalue : use_lvalue_impl<
- typename boost::range_reference<R1>::type,
- typename boost::range_reference<R2>::type
+ typename boost::range_reference<R1>::type,
+ typename boost::range_reference<R2>::type
>{};
}// chain_aux
Modified: sandbox/assign_v2/boost/assign/v2/utility/convert/check.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/convert/check.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/convert/check.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -34,7 +34,7 @@
namespace v2{
namespace check_aux{
- template<typename C, typename R>
+ template<typename C, typename R>
void equal_convert(R const& r)
{
C cont = converter( r );
@@ -42,11 +42,11 @@
ns::equal_container( cont, r );
}
- template<typename R>
+ template<typename R>
void equal_convert(R const& r)
{
- namespace as2 = boost::assign::v2;
- namespace ns = check_aux;
+ namespace as2 = boost::assign::v2;
+ namespace ns = check_aux;
typedef boost::array<int, 8> ar_;
typedef std::deque<int> deque_;
@@ -65,37 +65,37 @@
BOOST_MPL_ASSERT_NOT(( as2::convert_aux::use_put<vec_, R> ));
BOOST_MPL_ASSERT(( boost::is_same<
- typename as2::convert_aux::deduce_tag<ar_, R>::type,
+ typename as2::convert_aux::deduce_tag<ar_, R>::type,
convert_tag::put
>
));
BOOST_MPL_ASSERT(( boost::is_same<
- typename as2::convert_aux::deduce_tag<stack_, R>::type,
+ typename as2::convert_aux::deduce_tag<stack_, R>::type,
convert_tag::put
>
));
BOOST_MPL_ASSERT(( boost::is_same<
- typename as2::convert_aux::deduce_tag<queue_, R>::type,
+ typename as2::convert_aux::deduce_tag<queue_, R>::type,
convert_tag::put
>
));
BOOST_MPL_ASSERT(( boost::is_same<
- typename as2::convert_aux::deduce_tag<deque_, R>::type,
+ typename as2::convert_aux::deduce_tag<deque_, R>::type,
convert_tag::copy
>
));
BOOST_MPL_ASSERT(( boost::is_same<
- typename as2::convert_aux::deduce_tag<list_, R>::type,
+ typename as2::convert_aux::deduce_tag<list_, R>::type,
convert_tag::copy
>
));
BOOST_MPL_ASSERT(( boost::is_same<
- typename as2::convert_aux::deduce_tag<set_, R>::type,
+ typename as2::convert_aux::deduce_tag<set_, R>::type,
convert_tag::copy
>
));
BOOST_MPL_ASSERT(( boost::is_same<
- typename as2::convert_aux::deduce_tag<vec_, R>::type,
+ typename as2::convert_aux::deduce_tag<vec_, R>::type,
convert_tag::copy
>
));
Modified: sandbox/assign_v2/boost/assign/v2/utility/convert/converter.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/convert/converter.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/convert/converter.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -20,43 +20,43 @@
namespace v2{
namespace convert_aux{
- template<typename U>
+ template<typename U>
class converter
{
- typedef typename ref::copy_wrapper<
- U const
+ typedef typename ref::copy_wrapper<
+ U const
>::type wrapper_;
public:
- explicit converter(U const& u) : w( u ){}
+ explicit converter(U const& u) : w( u ){}
template<typename T>
operator T () const
{
- return this->type<T>();
+ return this->type<T>();
}
- template<typename T>
+ template<typename T>
T type()const
{
- typedef typename convert_aux::deduce_tag<T, U>::type tag_;
+ typedef typename convert_aux::deduce_tag<T, U>::type tag_;
return convert_aux::dispatch<T>( this->w.get(), tag_() );
}
- private:
+ private:
wrapper_ w;
- };
+ };
}// convert_aux
- template<typename U>
- convert_aux::converter<U>
+ template<typename U>
+ convert_aux::converter<U>
converter(U const& u){
- typedef convert_aux::converter<U> result_;
- return result_( u );
+ typedef convert_aux::converter<U> result_;
+ return result_( u );
}
}// v2
@@ -65,12 +65,12 @@
// Define name lookup for name
// namespace ns{
-// template<typename A, typename B, typename C> cont;
+// template<typename A, typename B, typename C> cont;
// }
// is done by expanding this macro:
// #define SEQ (A)(B)(C)
// namespace ns{
-// BOOST_ASSIGN_V2_CONVERTER( cont<A,B,C>, SEQ )
+// BOOST_ASSIGN_V2_CONVERTER( cont<A,B,C>, SEQ )
// }
//
@@ -89,18 +89,18 @@
// creates a name-lookup version of converter() for name ns::cont<A, B, C>
#define BOOST_ASSIGN_V2_CONVERTER(U, Seq)\
- template<BOOST_PP_SEQ_ENUM(\
- BOOST_PP_SEQ_TRANSFORM(\
- BOOST_ASSIGN_V2_CONVERTER_OP,\
+ template<BOOST_PP_SEQ_ENUM(\
+ BOOST_PP_SEQ_TRANSFORM(\
+ BOOST_ASSIGN_V2_CONVERTER_OP,\
~,\
Seq\
)\
)>\
::boost::assign::v2::convert_aux::converter< U > \
- converter( U const& cont)\
+ converter( U const& cont)\
{\
- typedef convert_aux::converter< U > result_; \
- return result_( cont );\
+ typedef convert_aux::converter< U > result_; \
+ return result_( cont );\
}\
/**/
#endif
Modified: sandbox/assign_v2/boost/assign/v2/utility/convert/deduce.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/convert/deduce.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/convert/deduce.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,11 +16,11 @@
#include <boost/assign/v2/utility/convert/predicate.hpp>
namespace boost{
- struct use_default;
+ struct use_default;
namespace assign{
namespace v2{
namespace switch_tag{
- struct deduce_convert{};
+ struct deduce_convert{};
}// switch_tag
namespace switch_aux{
@@ -40,8 +40,8 @@
template<typename T, typename U>
struct deduce_tag : v2::switch_aux::result<
- v2::switch_tag::deduce_convert,
- boost::mpl::pair<T, U>
+ v2::switch_tag::deduce_convert,
+ boost::mpl::pair<T, U>
>
{};
Modified: sandbox/assign_v2/boost/assign/v2/utility/convert/dispatch.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/convert/dispatch.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/convert/dispatch.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,7 +22,7 @@
namespace v2{
namespace convert_aux{
- template<typename T, typename U>
+ template<typename T, typename U>
T dispatch(U const& u, convert_tag::put)
{
T t;
@@ -30,10 +30,10 @@
}
- template<typename T, typename U>
- T dispatch(U const& u, convert_tag::copy)
+ template<typename T, typename U>
+ T dispatch(U const& u, convert_tag::copy)
{
- return T( boost::begin( u ), boost::end( u ) );
+ return T( boost::begin( u ), boost::end( u ) );
}
}// convert_aux
Modified: sandbox/assign_v2/boost/assign/v2/utility/convert/helper.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/convert/helper.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/convert/helper.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,13 +23,13 @@
struct default_f : ::boost::mpl::true_{};
template<typename Tag,
- template<typename, typename> class F = convert_aux::default_f>
+ template<typename, typename> class F = convert_aux::default_f>
struct helper
{
typedef Tag tag;
template<typename T> // T must derive from mpl::pair<>
struct apply
- : F<typename T::first, typename T::second>
+ : F<typename T::first, typename T::second>
{
};
};
Modified: sandbox/assign_v2/boost/assign/v2/utility/convert/predicate.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/convert/predicate.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/convert/predicate.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,9 +18,9 @@
namespace v2{
namespace convert_aux{
- template<typename T, typename U>
+ template<typename T, typename U>
struct use_put : ::boost::mpl::or_<
- v2::container_traits::is_array<T>,
+ v2::container_traits::is_array<T>,
v2::container_traits::has_push<T>
>{};
Modified: sandbox/assign_v2/boost/assign/v2/utility/convert/tag.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/convert/tag.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/utility/convert/tag.hpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -15,7 +15,7 @@
namespace v2{
namespace convert_tag{
- struct put{};
+ struct put{};
struct copy{};
}// convert_tag
Modified: sandbox/assign_v2/libs/assign/v2/src/main.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/src/main.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/src/main.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,20 +16,20 @@
{
// Do not put libs/assign/v2/test/unit_testing in this project
- {
- using namespace test_assign_v2;
- xxx_detail::test();
- xxx_put::test();
- xxx_ref::test();
- xxx_utility::test();
+ {
+ using namespace test_assign_v2;
+ xxx_detail::test();
+ xxx_put::test();
+ xxx_ref::test();
+ xxx_utility::test();
xxx_other::test();
}
/*
- {
- using namespace speed_assign_v2;
+ {
+ using namespace speed_assign_v2;
std::ofstream ofs("results");
- xxx_put_ref::run(ofs);
+ xxx_put_ref::run(ofs);
}
*/
Modified: sandbox/assign_v2/libs/assign/v2/test/detail/traits/has_push.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/detail/traits/has_push.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/detail/traits/has_push.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,18 +21,18 @@
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
namespace ns = as2::container_traits;
{
- typedef std::queue<int> v_;
+ typedef std::queue<int> v_;
BOOST_MPL_ASSERT(( ns::has_push<v_> ));
}
{
- typedef std::queue<int> v_;
+ typedef std::queue<int> v_;
BOOST_MPL_ASSERT(( ns::has_push<v_> ));
}
{
- typedef std::vector<int> v_;
+ typedef std::vector<int> v_;
BOOST_MPL_ASSERT_NOT(( ns::has_push<v_> ));
}
}
Modified: sandbox/assign_v2/libs/assign/v2/test/detail/traits/has_value_type.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/detail/traits/has_value_type.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/detail/traits/has_value_type.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -19,18 +19,18 @@
namespace xxx_has_value_type{
void test(){
-
+
namespace as2 = boost::assign::v2;
{
typedef std::vector<int> inp_;
- typedef as2::type_traits::has_value_type<inp_>::type pred_;
- BOOST_STATIC_ASSERT(pred_::value);
- }
+ typedef as2::type_traits::has_value_type<inp_>::type pred_;
+ BOOST_STATIC_ASSERT(pred_::value);
+ }
{
typedef int inp_;
- typedef as2::type_traits::has_value_type<inp_>::type pred_;
- BOOST_STATIC_ASSERT(!pred_::value);
- }
+ typedef as2::type_traits::has_value_type<inp_>::type pred_;
+ BOOST_STATIC_ASSERT(!pred_::value);
+ }
}
Modified: sandbox/assign_v2/libs/assign/v2/test/other.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/other.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/other.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,29 +22,29 @@
namespace test_assign_v2{
namespace xxx_other{
- // Tests interaction between different functionalities
+ // Tests interaction between different functionalities
void test(){
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
- {
- //[array_converter
- typedef std::pair<std::string, int> T;
- typedef std::vector<T> cont_;
- cont_ cont = converter( // name lookup
- as2::ref::array( T("jan", 31) )( T("feb", 28) )( T("mar", 31) )
+ {
+ //[array_converter
+ typedef std::pair<std::string, int> T;
+ typedef std::vector<T> cont_;
+ cont_ cont = converter( // name lookup
+ as2::ref::array( T("jan", 31) )( T("feb", 28) )( T("mar", 31) )
);
- BOOST_ASSIGN_V2_CHECK( cont[1].first == "feb" );
- BOOST_ASSIGN_V2_CHECK( cont[1].second == 28 );
+ BOOST_ASSIGN_V2_CHECK( cont[1].first == "feb" );
+ BOOST_ASSIGN_V2_CHECK( cont[1].second == 28 );
//]
- BOOST_ASSIGN_V2_CHECK( cont[0].first == "jan" );
- BOOST_ASSIGN_V2_CHECK( cont[0].second == 31 );
- BOOST_ASSIGN_V2_CHECK( cont[2].first == "mar" );
- BOOST_ASSIGN_V2_CHECK( cont[2].second == 31 );
- }
+ BOOST_ASSIGN_V2_CHECK( cont[0].first == "jan" );
+ BOOST_ASSIGN_V2_CHECK( cont[0].second == 31 );
+ BOOST_ASSIGN_V2_CHECK( cont[2].first == "mar" );
+ BOOST_ASSIGN_V2_CHECK( cont[2].second == 31 );
+ }
{
- //[chain_w
+ //[chain_w
std::vector<int> v( 3 ); v[0] = -1; v[1] = 0; v[2] = 1;
boost::array<int, 2> ar; int z; // lvalues
boost::copy(
@@ -52,7 +52,7 @@
boost::begin(
ar | as2::_chain(
as2::ref::csv_array( z ) // rvalue!
- | as2::ref::_get
+ | as2::ref::_get
)
)
);
@@ -60,22 +60,22 @@
BOOST_ASSIGN_V2_CHECK( ar[1] == 0 );
BOOST_ASSIGN_V2_CHECK( z == 1 );
//]
- }
- {
- //[array_converter
- typedef std::pair<std::string, int> T;
- typedef std::vector<T> cont_;
- cont_ cont = converter( // name lookup
- as2::ref::array( T("jan", 31) )( T("feb", 28) )( T("mar", 31) )
+ }
+ {
+ //[array_converter
+ typedef std::pair<std::string, int> T;
+ typedef std::vector<T> cont_;
+ cont_ cont = converter( // name lookup
+ as2::ref::array( T("jan", 31) )( T("feb", 28) )( T("mar", 31) )
);
- BOOST_ASSIGN_V2_CHECK( cont[1].first == "feb" );
- BOOST_ASSIGN_V2_CHECK( cont[1].second == 28 );
+ BOOST_ASSIGN_V2_CHECK( cont[1].first == "feb" );
+ BOOST_ASSIGN_V2_CHECK( cont[1].second == 28 );
//]
- BOOST_ASSIGN_V2_CHECK( cont[0].first == "jan" );
- BOOST_ASSIGN_V2_CHECK( cont[0].second == 31 );
- BOOST_ASSIGN_V2_CHECK( cont[2].first == "mar" );
- BOOST_ASSIGN_V2_CHECK( cont[2].second == 31 );
- }
+ BOOST_ASSIGN_V2_CHECK( cont[0].first == "jan" );
+ BOOST_ASSIGN_V2_CHECK( cont[0].second == 31 );
+ BOOST_ASSIGN_V2_CHECK( cont[2].first == "mar" );
+ BOOST_ASSIGN_V2_CHECK( cont[2].second == 31 );
+ }
}
}// xxx_other
Modified: sandbox/assign_v2/libs/assign/v2/test/put.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,14 +22,14 @@
void test()
{
- xxx_deduce::test();
- xxx_container::test();
- xxx_modulo::test();
- xxx_deque::test();
- xxx_std::test();
- xxx_ext::test();
- xxx_ptr::test();
- xxx_pipe::test();
+ xxx_deduce::test();
+ xxx_container::test();
+ xxx_modulo::test();
+ xxx_deque::test();
+ xxx_std::test();
+ xxx_ext::test();
+ xxx_ptr::test();
+ xxx_pipe::test();
}
}// xxx_put
Modified: sandbox/assign_v2/libs/assign/v2/test/put/container.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/container.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/container.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -19,9 +19,9 @@
void test()
{
- xxx_functor::test();
- xxx_csv::test();
- xxx_range::test();
+ xxx_functor::test();
+ xxx_csv::test();
+ xxx_range::test();
}
}// xxx_container
Modified: sandbox/assign_v2/libs/assign/v2/test/put/container/csv.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/container/csv.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/container/csv.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,36 +22,36 @@
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
{
- //[csv_list
- typedef int T; T x = 1, y = 2, z = 0;
- std::list<T> seq1, seq2;
- ( as2::put( seq1 ) )( x )( y )( z );
- ( as2::csv_put( seq2 ) )( x, y, z );
- BOOST_ASSIGN_V2_CHECK( seq1 == seq2 );
- //]
+ //[csv_list
+ typedef int T; T x = 1, y = 2, z = 0;
+ std::list<T> seq1, seq2;
+ ( as2::put( seq1 ) )( x )( y )( z );
+ ( as2::csv_put( seq2 ) )( x, y, z );
+ BOOST_ASSIGN_V2_CHECK( seq1 == seq2 );
+ //]
}
{
- //[csv_map
- typedef std::map<std::string, int> cont_;
- typedef cont_::value_type type; cont_ cont;
- as2::csv_put( cont )(
+ //[csv_map
+ typedef std::map<std::string, int> cont_;
+ typedef cont_::value_type type; cont_ cont;
+ as2::csv_put( cont )(
type("jan", 31), type("feb", 28), type("mar", 31)
);
- BOOST_ASSIGN_V2_CHECK( cont["feb"] == 28 );
- //]
- BOOST_ASSIGN_V2_CHECK( cont["jan"] == 31 );
- BOOST_ASSIGN_V2_CHECK( cont["mar"] == 31 );
+ BOOST_ASSIGN_V2_CHECK( cont["feb"] == 28 );
+ //]
+ BOOST_ASSIGN_V2_CHECK( cont["jan"] == 31 );
+ BOOST_ASSIGN_V2_CHECK( cont["mar"] == 31 );
}
{
- //[ptr_vector
- typedef int T; T x = 1, y = 2, z = 0;
- boost::ptr_vector<T> seq1, seq2;
+ //[ptr_vector
+ typedef int T; T x = 1, y = 2, z = 0;
+ boost::ptr_vector<T> seq1, seq2;
as2::csv_put( seq1 )( x, y, z );
as2::put( seq2 )( x )( y )( z );
- BOOST_ASSIGN_V2_CHECK( seq1 == seq2 );
- //]
+ BOOST_ASSIGN_V2_CHECK( seq1 == seq2 );
+ //]
}
// TODO ptr_map
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/container/functor.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/container/functor.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/container/functor.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -29,8 +29,8 @@
void test(){
namespace as2 = boost::assign::v2;
- {
- //[array
+ {
+ //[array
typedef int T; T x = 1, y = 2, z = 3;
boost::array<T, 3> ar; as2::put( ar )( x )( y )( z );
BOOST_ASSIGN_V2_CHECK( ar[0] == x );
@@ -40,13 +40,13 @@
{
// std::string may be replaced by const char* using a custom
// comparator
- //[map
+ //[map
std::map<std::string, int> assoc;
as2::put( assoc )( "jan", 31 )( "feb", 28 )( "mar", 31 );
BOOST_ASSIGN_V2_CHECK( assoc["feb"] == 28 );
//]
}
- {
+ {
//[set
typedef std::string T;
std::set<T> assoc;
@@ -55,7 +55,7 @@
BOOST_ASSIGN_V2_CHECK( assoc.count( x ) == 1 );
BOOST_ASSIGN_V2_CHECK( assoc.count( z ) == 1 );
//]
- }
+ }
{
//[deque
typedef int T; T x = 1, y = 2, z = 0;
@@ -91,7 +91,7 @@
BOOST_ASSIGN_V2_CHECK( fifo.front() == x );
BOOST_ASSIGN_V2_CHECK( fifo.back() == z );
//]
- }
+ }
{
//[stack
typedef int T; T x = 8, y = 7, z = 4;
@@ -101,10 +101,10 @@
BOOST_ASSIGN_V2_CHECK( lifo.top() == y ); lifo.pop();
BOOST_ASSIGN_V2_CHECK( lifo.top() == x ); lifo.pop();
//]
- }
+ }
{
- using namespace boost;
- //[tuple
+ using namespace boost;
+ //[tuple
typedef int& ref_; typedef std::string val_;
typedef boost::tuple<ref_, val_> T;
int x = 31, y = 28, z = 31; std::vector<T> seq;
@@ -127,8 +127,8 @@
//]
}
{
- using namespace boost;
- //[default_constr2
+ using namespace boost;
+ //[default_constr2
typedef std::string a_; typedef int b_;
typedef boost::tuple<a_, b_> T;
a_ a0 = "jan", a1 = "feb", a2 = "mar"; b_ b0 = 31, b1 = 28, b2 = 31;
Modified: sandbox/assign_v2/libs/assign/v2/test/put/container/range.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/container/range.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/container/range.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -20,32 +20,32 @@
namespace xxx_container{
namespace xxx_range{
- void test()
+ void test()
{
namespace as2 = boost::assign::v2;
//[range_var
- typedef int T; T x = 1, y = 2, z = 0;
+ typedef int T; T x = 1, y = 2, z = 0;
std::vector<T> r( 3 ); r[0] = x; r[1] = y; r[2] = z;
//]
// Forwards to put()
- {
- //[range_array
- boost::array<T, 3> cont; as2::put_range( cont, r );
+ {
+ //[range_array
+ boost::array<T, 3> cont; as2::put_range( cont, r );
BOOST_ASSIGN_V2_CHECK( cont.front() == x );
BOOST_ASSIGN_V2_CHECK( cont.back() == z );
//]
}
- {
- //[range_stack
- typedef std::stack<T> lifo_;
- BOOST_ASSIGN_V2_CHECK( as2::put_range<lifo_>( r ).top() == z );
+ {
+ //[range_stack
+ typedef std::stack<T> lifo_;
+ BOOST_ASSIGN_V2_CHECK( as2::put_range<lifo_>( r ).top() == z );
//]
}
// Calls C(b, e)
- {
- //[range_deque
- std::deque<T> cont; as2::put_range( cont, r );
+ {
+ //[range_deque
+ std::deque<T> cont; as2::put_range( cont, r );
BOOST_ASSIGN_V2_CHECK( cont.front() == x );
BOOST_ASSIGN_V2_CHECK( cont.back() == z );
//]
Modified: sandbox/assign_v2/libs/assign/v2/test/put/deduce.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/deduce.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/deduce.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -32,9 +32,9 @@
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
{
- typedef as2::modifier_tag::push_back wanted_;
+ typedef as2::modifier_tag::push_back wanted_;
as2::put_aux::check_deduce<std::deque<int>, wanted_>();
as2::put_aux::check_deduce<std::list<int>, wanted_>();
as2::put_aux::check_deduce<std::vector<int>, wanted_>();
@@ -44,30 +44,30 @@
as2::put_aux::check_deduce<boost::ptr_vector<int>, wanted_>();
}
{
- typedef as2::modifier_tag::iterate wanted_;
+ typedef as2::modifier_tag::iterate wanted_;
as2::put_aux::check_deduce<boost::array<int, 1>, wanted_>();
as2::put_aux::check_deduce<boost::ptr_array<int, 1>, wanted_>();
}
{
- typedef as2::modifier_tag::push wanted_;
+ typedef as2::modifier_tag::push wanted_;
as2::put_aux::check_deduce<std::queue<int>, wanted_>();
as2::put_aux::check_deduce<std::stack<int>, wanted_>();
}
- {
- typedef as2::modifier_tag::insert wanted_;
+ {
+ typedef as2::modifier_tag::insert wanted_;
as2::put_aux::check_deduce<std::set<int>, wanted_>();
typedef std::string str_;
as2::put_aux::check_deduce<std::map<str_, int>, wanted_>();
- }
+ }
{
- //[deduce_map
+ //[deduce_map
typedef std::map<std::string, int> cont_;
- typedef as2::put_traits< cont_ > traits_;
+ typedef as2::put_traits< cont_ > traits_;
BOOST_MPL_ASSERT((boost::is_same<
traits_::modifier_tag,
as2::modifier_tag::insert
>));
- //]
+ //]
}
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/deque.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/deque.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/deque.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -17,12 +17,12 @@
namespace xxx_put{
namespace xxx_deque{
- void test()
+ void test()
{
- xxx_csv::test();
- xxx_functor::test();
- xxx_modulo::test();
- xxx_std::test();
+ xxx_csv::test();
+ xxx_functor::test();
+ xxx_modulo::test();
+ xxx_std::test();
}
}// xxx_deque
Modified: sandbox/assign_v2/libs/assign/v2/test/put/deque/csv.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/deque/csv.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/deque/csv.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,11 +18,11 @@
namespace xxx_deque{
namespace xxx_csv{
- void test()
+ void test()
{
namespace as2 = boost::assign::v2;
{
- //[csv_deque
+ //[csv_deque
typedef int T; T x = 1, y = 2, z = 0;
as2::result_of::deque<T>::type cont = as2::csv_deque( x, y, z );
BOOST_ASSIGN_V2_CHECK( cont.front() == x );
@@ -30,10 +30,10 @@
//]
}
{
- //[deque_str
- typedef std::string str_;
+ //[deque_str
+ typedef std::string str_;
BOOST_ASSIGN_V2_CHECK(
- str_( as2::csv_deque( "x" )( "y" )( "z" )[1] ) == "y"
+ str_( as2::csv_deque( "x" )( "y" )( "z" )[1] ) == "y"
);
//]
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/deque/functor.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/deque/functor.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/deque/functor.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,11 +18,11 @@
namespace xxx_deque{
namespace xxx_functor{
- void test()
+ void test()
{
namespace as2 = boost::assign::v2;
{
- //[deque
+ //[deque
typedef int T; T x = 1, z = 0;
as2::result_of::deque<T>::type cont = as2::deque<T>( x )()( z );
BOOST_ASSIGN_V2_CHECK( cont.front() == x );
Modified: sandbox/assign_v2/libs/assign/v2/test/put/deque/modulo.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/deque/modulo.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/deque/modulo.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,16 +22,16 @@
namespace xxx_deque{
namespace xxx_modulo{
- // Tests interaction between different functionalities
+ // Tests interaction between different functionalities
void test(){
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
- {
+ {
//[deque_front
BOOST_AUTO(
- cont, (
+ cont, (
as2::deque<int>( as2::_nil ) % as2::_push_front
)( -1 )( 0 )( 1 )
);
@@ -39,12 +39,12 @@
BOOST_ASSIGN_V2_CHECK( cont.back() == -1 );
//]
BOOST_ASSIGN_V2_CHECK( boost::size( cont ) == 3 );
- }
+ }
{
- //[deque_repeat
+ //[deque_repeat
BOOST_AUTO(
- cont, (
- as2::deque<int>( as2::_nil ) % ( as2::_repeat = 2 )
+ cont, (
+ as2::deque<int>( as2::_nil ) % ( as2::_repeat = 2 )
)( -1 )( 0 )( 1 )
);
BOOST_ASSIGN_V2_CHECK( boost::size( cont ) == 6 );
@@ -52,7 +52,7 @@
BOOST_ASSIGN_V2_CHECK( cont.front() == -1 );
BOOST_ASSIGN_V2_CHECK( cont.back() == 1 );
}
- }
+ }
}// xxx_modulo
}// xxx_deque
Modified: sandbox/assign_v2/libs/assign/v2/test/put/deque/std.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/deque/std.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/deque/std.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,20 +18,20 @@
namespace xxx_deque{
namespace xxx_std{
- void test()
+ void test()
{
namespace as2 = boost::assign::v2;
{
- typedef int T; T x = 1, y = 2, z = 0;
+ typedef int T; T x = 1, y = 2, z = 0;
//[deque_front
BOOST_AUTO(
- cont,
+ cont,
(
- as2::deque<T>( as2::_nil ) % as2::_push_front
+ as2::deque<T>( as2::_nil ) % as2::_push_front
)( x )( y )( z )
);
- BOOST_ASSIGN_V2_CHECK( cont[0] == z );
- BOOST_ASSIGN_V2_CHECK( cont[2] == x );
+ BOOST_ASSIGN_V2_CHECK( cont[0] == z );
+ BOOST_ASSIGN_V2_CHECK( cont[2] == x );
//]
}
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/ext.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/ext.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/ext.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,7 +16,7 @@
void test()
{
- xxx_functor::test();
+ xxx_functor::test();
}
}// xxx_ext
Modified: sandbox/assign_v2/libs/assign/v2/test/put/ext/functor.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/ext/functor.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/ext/functor.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -27,15 +27,15 @@
namespace as2 = boost::assign::v2;
namespace bl = boost::lambda;
{
- //[iterate
- boost::array<int, 3> cont;
+ //[iterate
+ boost::array<int, 3> cont;
( as2::put( cont ) % as2::_iterate )( 1 )( 2 )( 3 );
BOOST_ASSIGN_V2_CHECK( cont[0] == 1 );
BOOST_ASSIGN_V2_CHECK( cont[2] == 3 );
//]
}
- {
- //[lookup
+ {
+ //[lookup
std::map<std::string, int> cont;
cont["jan"] = 31; cont["feb"] = 29; cont["mar"] = 32;
(
Modified: sandbox/assign_v2/libs/assign/v2/test/put/modulo.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/modulo.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/modulo.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,25 +25,25 @@
namespace as2 = boost::assign::v2;
namespace bl = boost::lambda;
{
- //[modulo_fun
+ //[modulo_fun
typedef int T; T x = 1, y = 2, z = 0;
- std::vector<int> cont;
- (
- as2::put( cont ) % ( as2::_fun = ( bl::_1 + 1 ) )
+ std::vector<int> cont;
+ (
+ as2::put( cont ) % ( as2::_fun = ( bl::_1 + 1 ) )
)( x )( y )( z );
- BOOST_ASSIGN_V2_CHECK( cont.front() == ( x + 1 ) );
- BOOST_ASSIGN_V2_CHECK( cont.back() == ( z + 1 ) );
- //]
+ BOOST_ASSIGN_V2_CHECK( cont.front() == ( x + 1 ) );
+ BOOST_ASSIGN_V2_CHECK( cont.back() == ( z + 1 ) );
+ //]
}
{
- //[modulo_push_front
+ //[modulo_push_front
typedef int T; T x = 1, y = 2, z = 0;
- std::deque<int> cont;
- ( as2::put( cont ) % ( as2::_modifier
- = as2::modifier_tag::push_front() ) )( x )( y )( z );
- BOOST_ASSIGN_V2_CHECK( cont.front() == z );
- BOOST_ASSIGN_V2_CHECK( cont.back() == x );
- //]
+ std::deque<int> cont;
+ ( as2::put( cont ) % ( as2::_modifier
+ = as2::modifier_tag::push_front() ) )( x )( y )( z );
+ BOOST_ASSIGN_V2_CHECK( cont.front() == z );
+ BOOST_ASSIGN_V2_CHECK( cont.back() == x );
+ //]
}
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -18,10 +18,10 @@
namespace xxx_pipe{
void test(){
- xxx_modulo::test();
- xxx_csv::test();
- xxx_functor::test();
- xxx_range::test();
+ xxx_modulo::test();
+ xxx_csv::test();
+ xxx_functor::test();
+ xxx_range::test();
}
}// xxx_pipe
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/container.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/container.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/container.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -20,7 +20,7 @@
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
//[csv_pipe_list
typedef int T; T x = 1, y = 2, z = 0;
std::list<T> seq;
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/ext.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/ext.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/ext.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -28,12 +28,12 @@
void test(){
- // This test is also about string literals
+ // This test is also about string literals
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
namespace bl = boost::lambda;
- {
- //[csv_lookup
+ {
+ //[csv_lookup
std::map<std::string, int> cont;
cont["jan"] = 29; cont["feb"] = 26; cont["mar"] = 29;
cont | (
@@ -45,7 +45,7 @@
//]
}
{
- //[csv_repeat
+ //[csv_repeat
typedef int T; std::deque<T> cont; T x = 1, y = 2, z = 0;
cont | ( as2::_csv_put % ( as2::_repeat = 2 ) )( x, y, z );
BOOST_ASSIGN_V2_CHECK( cont.size() == 6 );
@@ -58,7 +58,7 @@
BOOST_ASSIGN_V2_CHECK( cont[5] == z );
}
{
- //[csv_iterate
+ //[csv_iterate
typedef int T; T x = 1, y = 2, z = 0;
boost::array<T, 3> ar; ar[0] = x;
ar | (as2::_csv_put % ( as2::_iterate = 1 ) )( y, z );
@@ -67,7 +67,7 @@
BOOST_ASSIGN_V2_CHECK( ar[2] == z );
//]
}
- }
+ }
}// xxx_ext
}// xxx_csv
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/fun.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/fun.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/fun.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,15 +25,15 @@
namespace as2 = boost::assign::v2;
namespace bl = boost::lambda;
{
- //[csv_modulo_fun
+ //[csv_modulo_fun
typedef int T; T x = 1, y = 2, z = 0;
- std::vector<int> cont;
+ std::vector<int> cont;
cont | (
- as2::_csv_put % ( as2::_fun = ( bl::_1 + 1 ) )
+ as2::_csv_put % ( as2::_fun = ( bl::_1 + 1 ) )
)( x, y, z );
- BOOST_ASSIGN_V2_CHECK( cont.front() == ( x + 1 ) );
- BOOST_ASSIGN_V2_CHECK( cont.back() == ( z + 1 ) );
- //]
+ BOOST_ASSIGN_V2_CHECK( cont.front() == ( x + 1 ) );
+ BOOST_ASSIGN_V2_CHECK( cont.back() == ( z + 1 ) );
+ //]
}
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/rhs.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/rhs.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/rhs.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,19 +23,19 @@
namespace xxx_csv{
namespace xxx_rhs{
- template<int i, typename T, typename P, typename U>
- void xxx_assert(T& rhs, P const& pred, U const& u)
+ template<int i, typename T, typename P, typename U>
+ void xxx_assert(T& rhs, P const& pred, U const& u)
{
// TODO name lookup?
using namespace boost;
using namespace boost::assign::v2;
- pred( rhs.seq_args()[ i ].get(), u );
+ pred( rhs.seq_args()[ i ].get(), u );
}
void test(){
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
typedef boost::mpl::int_<0> zero_;
typedef int const cint_;
cint_ x = -1, y = 0, z = 1;
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/std.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/std.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/csv/std.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,13 +25,13 @@
namespace as2 = boost::assign::v2;
namespace bl = boost::lambda;
{
- //[push_front
+ //[push_front
typedef int T; T x = 1, y = 2, z = 0;
- std::deque<int> cont;
+ std::deque<int> cont;
cont | ( as2::_csv_put % as2::_push_front )( x, y ,z );
- BOOST_ASSIGN_V2_CHECK( cont.front() == z );
- BOOST_ASSIGN_V2_CHECK( cont.back() == x );
- //]
+ BOOST_ASSIGN_V2_CHECK( cont.front() == z );
+ BOOST_ASSIGN_V2_CHECK( cont.back() == x );
+ //]
}
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/container.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/container.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/container.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -29,8 +29,8 @@
void test(){
namespace as2 = boost::assign::v2;
- {
- //[pipe_array
+ {
+ //[pipe_array
typedef int T;
T x = 1, y = 2, z = 3;
boost::array<T, 3> ar;
@@ -40,13 +40,13 @@
//]
}
{
- //[pipe_map
+ //[pipe_map
std::map<std::string, int> assoc;
assoc | as2::_put( "jan", 31 )( "feb", 28 )( "mar", 31 );
BOOST_ASSIGN_V2_CHECK( assoc["feb"] == 28 );
//]
}
- {
+ {
//[pipe_set
typedef std::string T;
std::set<T> assoc;
@@ -55,7 +55,7 @@
BOOST_ASSIGN_V2_CHECK( assoc.count( x ) == 1 );
BOOST_ASSIGN_V2_CHECK( assoc.count( z ) == 1 );
//]
- }
+ }
{
//[pipe_deque
typedef int T; T x = 1, y = 2, z = 0;
@@ -91,7 +91,7 @@
BOOST_ASSIGN_V2_CHECK( fifo.front() == x );
BOOST_ASSIGN_V2_CHECK( fifo.back() == z );
//]
- }
+ }
{
//[pipe_stack
typedef int T; T x = 8, y = 7, z = 4;
@@ -100,7 +100,7 @@
BOOST_ASSIGN_V2_CHECK( lifo.top() == z ); lifo.pop();
BOOST_ASSIGN_V2_CHECK( lifo.top() == y );
//]
- }
+ }
}// test()
}// xxx_container
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/forward.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/forward.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/forward.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,32 +22,32 @@
namespace xxx_functor{
namespace xxx_forward{
- void test()
- {
+ void test()
+ {
namespace as2 = boost::assign::v2;
namespace ppx = as2::put_pipe_aux;
{
- typedef int T;
- T x = 1, y = 2, z = 0;
+ typedef int T;
+ T x = 1, y = 2, z = 0;
typedef std::vector<T> cont_; cont_ cont;
typedef as2::result_of::put<cont_>::type adapter_;
adapter_ adapter = as2::put( cont );
- ppx::forward( adapter, as2::ref::list_tuple( x )( y )( z )() );
- BOOST_ASSIGN_V2_CHECK( cont[0] == x );
- BOOST_ASSIGN_V2_CHECK( cont[1] == y );
- BOOST_ASSIGN_V2_CHECK( cont[2] == z );
- BOOST_ASSIGN_V2_CHECK( cont.size() == 4 );
- }
- {
- typedef const char* T;
- typedef std::deque<T> cont_; cont_ cont;
+ ppx::forward( adapter, as2::ref::list_tuple( x )( y )( z )() );
+ BOOST_ASSIGN_V2_CHECK( cont[0] == x );
+ BOOST_ASSIGN_V2_CHECK( cont[1] == y );
+ BOOST_ASSIGN_V2_CHECK( cont[2] == z );
+ BOOST_ASSIGN_V2_CHECK( cont.size() == 4 );
+ }
+ {
+ typedef const char* T;
+ typedef std::deque<T> cont_; cont_ cont;
typedef as2::result_of::put<cont_>::type adapter_;
- adapter_ adapter = as2::put( cont );
- ppx::forward( adapter, as2::ref::list_tuple( "x" ) );
- typedef std::string str_;
- BOOST_ASSIGN_V2_CHECK( str_( cont[0] ) == "x" );
+ adapter_ adapter = as2::put( cont );
+ ppx::forward( adapter, as2::ref::list_tuple( "x" ) );
+ typedef std::string str_;
+ BOOST_ASSIGN_V2_CHECK( str_( cont[0] ) == "x" );
}
- }
+ }
}// xxx_forward
}// xxx_functor
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/fun.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/fun.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/fun.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,15 +25,15 @@
namespace as2 = boost::assign::v2;
namespace bl = boost::lambda;
{
- //[fun
+ //[fun
typedef int T; T x = 1, y = 2, z = 0;
- std::vector<int> cont;
+ std::vector<int> cont;
cont | (
- as2::_put % ( as2::_fun = ( bl::_1 + 1 ) )
+ as2::_put % ( as2::_fun = ( bl::_1 + 1 ) )
)( x )( y )( z );
- BOOST_ASSIGN_V2_CHECK( cont.front() == ( x + 1 ) );
- BOOST_ASSIGN_V2_CHECK( cont.back() == ( z + 1 ) );
- //]
+ BOOST_ASSIGN_V2_CHECK( cont.front() == ( x + 1 ) );
+ BOOST_ASSIGN_V2_CHECK( cont.back() == ( z + 1 ) );
+ //]
}
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,21 +22,21 @@
namespace xxx_functor{
namespace xxx_rhs{
- template<int i, int j, typename T, typename P, typename U>
- void xxx_assert(T& rhs, P const& pred, U const& u)
+ template<int i, int j, typename T, typename P, typename U>
+ void xxx_assert(T& rhs, P const& pred, U const& u)
{
// TODO name lookup?
using namespace boost; // tuple<> (cpp03)
using namespace boost::assign::v2; // tuple (cpp0x)
- pred(
- get<j>(
- rhs.seq_args().get( boost::mpl::int_<i>() )
- ),
+ pred(
+ get<j>(
+ rhs.seq_args().get( boost::mpl::int_<i>() )
+ ),
u
);
}
- void test()
+ void test()
{
namespace as2 = boost::assign::v2;
typedef boost::mpl::int_<0> zero_;
@@ -48,7 +48,7 @@
BOOST_ASSIGN_V2_CHECK( n == 3 );
}
{
- /* rvalue */
+ /* rvalue */
#define A -10
#define B 10
/* lvalue */
@@ -57,7 +57,7 @@
cint_ a = 4, b = 5;
BOOST_AUTO(
- rhs,
+ rhs,
( as2::_put
( a1, b1 )( a1, b )( a1, B )
( a, b1 )( a, b )( a, B )
@@ -73,35 +73,35 @@
typedef chk::equal_ref r_;
typedef chk::equal_val v_;
- xxx_assert<0, 0>( rhs, r_(), a1);
- xxx_assert<0, 1>( rhs, r_(), b1);
- xxx_assert<1, 0>( rhs, r_(), a1); xxx_assert<1, 1>( rhs, r_(), b);
- xxx_assert<2, 0>( rhs, r_(), a1); xxx_assert<2, 1>( rhs, v_(), B);
-
- xxx_assert<3, 0>( rhs, r_(), a ); xxx_assert<3, 1>( rhs, r_(), b1);
- xxx_assert<4, 0>( rhs, r_(), a ); xxx_assert<4, 1>( rhs, r_(), b);
- xxx_assert<5, 0>( rhs, r_(), a ); xxx_assert<5, 1>( rhs, v_(), B);
-
- xxx_assert<6, 0>( rhs, v_(), A); xxx_assert<6, 1>( rhs, r_(), b1);
- xxx_assert<7, 0>( rhs, v_(), A); xxx_assert<7, 1>( rhs, r_(), b);
- xxx_assert<8, 0>( rhs, v_(), A); xxx_assert<8, 1>( rhs, v_(), B);
-
- xxx_assert<9, 0>( rhs, r_(), a1);
- xxx_assert<10, 0>( rhs, r_(), a);
- xxx_assert<11, 0>( rhs, v_(), A);
+ xxx_assert<0, 0>( rhs, r_(), a1);
+ xxx_assert<0, 1>( rhs, r_(), b1);
+ xxx_assert<1, 0>( rhs, r_(), a1); xxx_assert<1, 1>( rhs, r_(), b);
+ xxx_assert<2, 0>( rhs, r_(), a1); xxx_assert<2, 1>( rhs, v_(), B);
+
+ xxx_assert<3, 0>( rhs, r_(), a ); xxx_assert<3, 1>( rhs, r_(), b1);
+ xxx_assert<4, 0>( rhs, r_(), a ); xxx_assert<4, 1>( rhs, r_(), b);
+ xxx_assert<5, 0>( rhs, r_(), a ); xxx_assert<5, 1>( rhs, v_(), B);
+
+ xxx_assert<6, 0>( rhs, v_(), A); xxx_assert<6, 1>( rhs, r_(), b1);
+ xxx_assert<7, 0>( rhs, v_(), A); xxx_assert<7, 1>( rhs, r_(), b);
+ xxx_assert<8, 0>( rhs, v_(), A); xxx_assert<8, 1>( rhs, v_(), B);
+
+ xxx_assert<9, 0>( rhs, r_(), a1);
+ xxx_assert<10, 0>( rhs, r_(), a);
+ xxx_assert<11, 0>( rhs, v_(), A);
#undef A
#undef B
}
{
BOOST_AUTO(rhs, as2::_put( "x" ) );
- typedef boost::mpl::int_<0> int_;
- typedef std::string str_;
+ typedef boost::mpl::int_<0> int_;
+ typedef std::string str_;
using namespace boost;
- BOOST_ASSIGN_V2_CHECK(
- str_( get<0>( rhs.seq_args().get( int_() ) ) ) == "x"
+ BOOST_ASSIGN_V2_CHECK(
+ str_( get<0>( rhs.seq_args().get( int_() ) ) ) == "x"
);
- }
+ }
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/std.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/std.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/std.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -25,13 +25,13 @@
namespace as2 = boost::assign::v2;
namespace bl = boost::lambda;
{
- //[push_front
+ //[push_front
typedef int T; T x = 1, y = 2, z = 0;
- std::deque<int> cont;
+ std::deque<int> cont;
cont | ( as2::_put % as2::_push_front )( x )( y )( z );
- BOOST_ASSIGN_V2_CHECK( cont.front() == z );
- BOOST_ASSIGN_V2_CHECK( cont.back() == x );
- //]
+ BOOST_ASSIGN_V2_CHECK( cont.front() == z );
+ BOOST_ASSIGN_V2_CHECK( cont.back() == x );
+ //]
}
}
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -22,7 +22,7 @@
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
typedef const char* T;
std::deque<T> cont; typedef std::string str_;
cont | as2::_put( "x" )( "y" )( "z" );
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/range.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/range.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/range.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,38 +21,38 @@
namespace xxx_pipe{
namespace xxx_range{
- void test()
+ void test()
{
namespace as2 = boost::assign::v2;
//[range_var
- typedef int T; T x = 1, y = 2, z = 0;
+ typedef int T; T x = 1, y = 2, z = 0;
std::vector<T> r( 3 ); r[0] = x; r[1] = y; r[2] = z;
//]
// Forwards to put()
- {
- //[range_array
- boost::array<T, 3> cont; cont | as2::_put_range( r );
+ {
+ //[range_array
+ boost::array<T, 3> cont; cont | as2::_put_range( r );
BOOST_ASSIGN_V2_CHECK( cont.front() == x );
BOOST_ASSIGN_V2_CHECK( cont.back() == z );
//]
}
- {
- //[range_stack
- typedef std::stack<T> lifo_;
- BOOST_ASSIGN_V2_CHECK(
- (
- ::boost::type<lifo_>() | as2::_put_range( r )
+ {
+ //[range_stack
+ typedef std::stack<T> lifo_;
+ BOOST_ASSIGN_V2_CHECK(
+ (
+ ::boost::type<lifo_>() | as2::_put_range( r )
).top() == z
);
//]
}
// Calls C(b, e)
- {
- //[range_deque
- std::deque<T> cont; cont | as2::_put_range( r );
+ {
+ //[range_deque
+ std::deque<T> cont; cont | as2::_put_range( r );
BOOST_ASSIGN_V2_CHECK( cont.front() == x );
BOOST_ASSIGN_V2_CHECK( cont.back() == z );
//]
Modified: sandbox/assign_v2/libs/assign/v2/test/put/ptr.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/ptr.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/ptr.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -14,9 +14,9 @@
namespace xxx_put{
namespace xxx_ptr{
- void test()
+ void test()
{
- xxx_functor::test();
+ xxx_functor::test();
}// test
}// xxx_ptr
Modified: sandbox/assign_v2/libs/assign/v2/test/put/ptr/functor.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/ptr/functor.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/ptr/functor.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -24,10 +24,10 @@
namespace xxx_ptr{
namespace xxx_functor{
- void test(){
+ void test(){
namespace as2 = boost::assign::v2;
- {
- //[array
+ {
+ //[array
typedef int T;
T x = 1, y = 2, z = 3;
boost::ptr_array<T, 3> ar;
@@ -38,13 +38,13 @@
}
/*
{
- //[map
+ //[map
boost::ptr_map<std::string, int> assoc;
as2::put( assoc )( "jan", 31 )( "feb", 28 )( "mar", 31 );
BOOST_ASSIGN_V2_CHECK( assoc["feb"] == 28 );
//]
}
- {
+ {
//[set
typedef std::string T;
boost::ptr_set<T> assoc;
@@ -53,7 +53,7 @@
BOOST_ASSIGN_V2_CHECK( assoc.count( x ) == 1 );
BOOST_ASSIGN_V2_CHECK( assoc.count( z ) == 1 );
//]
- }
+ }
*/
{
//[deque
Modified: sandbox/assign_v2/libs/assign/v2/test/put/std.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/std.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/std.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,7 +16,7 @@
void test()
{
- xxx_functor::test();
+ xxx_functor::test();
}
}// xxx_std
Modified: sandbox/assign_v2/libs/assign/v2/test/ref/array.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/array.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/array.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -17,8 +17,8 @@
void test()
{
- xxx_functor::test();
- xxx_csv::test();
+ xxx_functor::test();
+ xxx_csv::test();
}
}// xxx_array
Modified: sandbox/assign_v2/libs/assign/v2/test/ref/array/csv.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/array/csv.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/array/csv.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,7 +23,7 @@
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
{
//[ref_csv_array_r
typedef int const T;
@@ -31,41 +31,41 @@
typedef as2::ref::nth_result_of::csv_array<3, T>::type ar_;
ar_ ar = as2::ref::csv_array( x, y, z );
//]
- {
- //[ref_if_fb
- T& rx = ar.front(); T& rz = ar.back();
- BOOST_ASSIGN_V2_CHECK( &rx == &x );
- BOOST_ASSIGN_V2_CHECK( &rz == &z );
+ {
+ //[ref_if_fb
+ T& rx = ar.front(); T& rz = ar.back();
+ BOOST_ASSIGN_V2_CHECK( &rx == &x );
+ BOOST_ASSIGN_V2_CHECK( &rz == &z );
//]
}
{
- //[ref_if_brackets
- T& rx = ar[0]; T& rz = ar[2];
- BOOST_ASSIGN_V2_CHECK( &rx == &x );
- BOOST_ASSIGN_V2_CHECK( &rz == &z );
+ //[ref_if_brackets
+ T& rx = ar[0]; T& rz = ar[2];
+ BOOST_ASSIGN_V2_CHECK( &rx == &x );
+ BOOST_ASSIGN_V2_CHECK( &rz == &z );
//]
}
{
- //[ref_if_it
- T& rx = (*boost::begin( ar ) );
+ //[ref_if_it
+ T& rx = (*boost::begin( ar ) );
T& rz = *boost::next( boost::begin( ar ), 2 );
- BOOST_ASSIGN_V2_CHECK( &rx == &x );
- BOOST_ASSIGN_V2_CHECK( &rz == &z );
+ BOOST_ASSIGN_V2_CHECK( &rx == &x );
+ BOOST_ASSIGN_V2_CHECK( &rz == &z );
//]
}
- }
+ }
{
//[ref_csv_array_w
typedef int T; T x, y, z;
std::vector<T> r( 3 ); r[0] = 1; r[1] = 2; r[2] = 0;
boost::copy( r, boost::begin(
- as2::ref::csv_array( x, y, z ) | as2::ref::_get
+ as2::ref::csv_array( x, y, z ) | as2::ref::_get
)
);
BOOST_ASSIGN_V2_CHECK( x == r[0] );
BOOST_ASSIGN_V2_CHECK( z == r[2] );
//]
- }
+ }
{
//[ref_csv_array_as
typedef int T; T x, y, z;
@@ -73,7 +73,7 @@
BOOST_ASSIGN_V2_CHECK( x == -1 );
BOOST_ASSIGN_V2_CHECK( z == -1 );
//]
- }
+ }
}
}// xxx_csv
Modified: sandbox/assign_v2/libs/assign/v2/test/ref/array/functor.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/array/functor.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/array/functor.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -24,7 +24,7 @@
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
{
//[ref_array_r
typedef int const T;
@@ -32,41 +32,41 @@
typedef as2::ref::nth_result_of::array<3, T>::type ar_;
ar_ ar = as2::ref::array( x )( y )( z );
//]
- {
- //[ref_if_fb
- T& rx = ar.front(); T& rz = ar.back();
- BOOST_ASSIGN_V2_CHECK( &rx == &x );
- BOOST_ASSIGN_V2_CHECK( &rz == &z );
+ {
+ //[ref_if_fb
+ T& rx = ar.front(); T& rz = ar.back();
+ BOOST_ASSIGN_V2_CHECK( &rx == &x );
+ BOOST_ASSIGN_V2_CHECK( &rz == &z );
//]
}
{
- //[ref_if_brackets
- T& rx = ar[0]; T& rz = ar[2];
- BOOST_ASSIGN_V2_CHECK( &rx == &x );
- BOOST_ASSIGN_V2_CHECK( &rz == &z );
+ //[ref_if_brackets
+ T& rx = ar[0]; T& rz = ar[2];
+ BOOST_ASSIGN_V2_CHECK( &rx == &x );
+ BOOST_ASSIGN_V2_CHECK( &rz == &z );
//]
}
{
- //[ref_if_it
- T& rx = ( *boost::begin( ar ) );
+ //[ref_if_it
+ T& rx = ( *boost::begin( ar ) );
T& rz = *boost::next( boost::begin( ar ), 2 );
- BOOST_ASSIGN_V2_CHECK( &rx == &x );
- BOOST_ASSIGN_V2_CHECK( &rz == &z );
+ BOOST_ASSIGN_V2_CHECK( &rx == &x );
+ BOOST_ASSIGN_V2_CHECK( &rz == &z );
//]
}
- }
+ }
{
//[ref_array_w
typedef int T; T x, y, z;
std::vector<T> r( 3 ); r[0] = 1; r[1] = 2; r[2] = 0;
boost::copy( r, boost::begin(
- as2::ref::array( x )( y )( z ) | as2::ref::_get
+ as2::ref::array( x )( y )( z ) | as2::ref::_get
)
);
BOOST_ASSIGN_V2_CHECK( x == r[0] );
BOOST_ASSIGN_V2_CHECK( z == r[2] );
//]
- }
+ }
{
//[ref_array_as
typedef int T; T x, y, z;
@@ -74,7 +74,7 @@
BOOST_ASSIGN_V2_CHECK( x == -1 );
BOOST_ASSIGN_V2_CHECK( z == -1 );
//]
- }
+ }
}
}// xxx_functor
Modified: sandbox/assign_v2/libs/assign/v2/test/ref/convert_traits.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/convert_traits.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/convert_traits.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -16,10 +16,10 @@
void test()
{
- namespace as2 = boost::assign::v2;
- namespace ns = as2::ref::convert_traits::checking;
+ namespace as2 = boost::assign::v2;
+ namespace ns = as2::ref::convert_traits::checking;
{
- ns::same_value_type::do_check<int>();
+ ns::same_value_type::do_check<int>();
}
// TODO, in the future
/*
@@ -28,7 +28,7 @@
namespace ari = dv::arithmetic;
ari::do_check<short>();
ari::do_check<int>();
- ari::do_check<float>();
+ ari::do_check<float>();
ari::do_check<double>();
}
*/
Modified: sandbox/assign_v2/libs/assign/v2/test/ref/list.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/list.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/list.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -26,23 +26,23 @@
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
typedef boost::use_default tag_;
typedef std::string str_;
{
typedef int t0_;
typedef int const t1_;
typedef const char t2_ [2];
- typedef boost::add_reference<t0_>::type r0_;
+ typedef boost::add_reference<t0_>::type r0_;
/* // TODO see head_holder
#ifndef BOOST_NO_RVALUE_REFERENCES
typedef int r1_;
#else*/
- typedef boost::add_reference<t1_>::type r1_;
+ typedef boost::add_reference<t1_>::type r1_;
//#endif
- typedef boost::add_reference<t2_>::type r2_;
+ typedef boost::add_reference<t2_>::type r2_;
t0_ a = 0;
#define B 2
@@ -67,7 +67,7 @@
typedef boost::array<w_,3> arw_;
typedef as2::ref::nth_result_of::list<tag_> result_;
typedef boost::mpl::apply1<result_,
- boost::mpl::vector<r_, r_, r_>
+ boost::mpl::vector<r_, r_, r_>
>::type ar_;
ar_ ar = as2::ref::list<tag_>( as2::_nil )( a )( b )( c );
arw_ arw;
@@ -76,43 +76,43 @@
BOOST_ASSIGN_V2_CHECK( &arw[ 1 ].get() == &b );
BOOST_ASSIGN_V2_CHECK( &arw[ 2 ].get() == &c );
}
- {
- typedef as2::ref::alloc_tag::lazy_alloc tag_;
+ {
+ typedef as2::ref::alloc_tag::lazy_alloc tag_;
typedef as2::ref::list_aux::void_ void_;
typedef as2::ref::list_aux::nil nil_;
typedef as2::ref::empty_list<tag_>::type empty_;
- {
- typedef void_ u1_; typedef nil_ l_;
- typedef as2::ref::list_aux::policy_helper3<
- u1_, l_
+ {
+ typedef void_ u1_; typedef nil_ l_;
+ typedef as2::ref::list_aux::policy_helper3<
+ u1_, l_
>::type value_;
BOOST_MPL_ASSERT((boost::is_same<value_, u1_>));
- typedef boost::mpl::apply2<
- as2::ref::list_aux::policy<tag_>,
- as2::ref::list_aux::void_,
- as2::ref::list_aux::nil
- >::type po_; // just see that it compiles
- }
- {
- typedef as2::ref::nth_result_of::list<tag_> result_;
+ typedef boost::mpl::apply2<
+ as2::ref::list_aux::policy<tag_>,
+ as2::ref::list_aux::void_,
+ as2::ref::list_aux::nil
+ >::type po_; // just see that it compiles
+ }
+ {
+ typedef as2::ref::nth_result_of::list<tag_> result_;
typedef empty_ l_;
{
- typedef int u1_;
+ typedef int u1_;
typedef as2::ref::list_aux::policy_helper3<
u1_, l_
>::type val_;
BOOST_MPL_ASSERT(( boost::is_same<val_, int> ));
}
{
- typedef int const u1_;
+ typedef int const u1_;
typedef as2::ref::list_aux::policy_helper3<
u1_, l_
>::type val_;
BOOST_MPL_ASSERT(( boost::is_same<val_, int const> ));
}
- }
+ }
- }
+ }
{
typedef int t_; typedef boost::add_reference<t_>::type r_;
t_ a = 0;
@@ -121,7 +121,7 @@
typedef as2::ref::alloc_tag::lazy_alloc tag_;
typedef as2::ref::nth_result_of::list<tag_> result_;
typedef boost::mpl::apply1<result_,
- boost::mpl::vector<r_, r_, r_>
+ boost::mpl::vector<r_, r_, r_>
>::type ar_;
ar_ ar = as2::ref::list<tag_>( as2::_nil )( a )( b )( c );
Modified: sandbox/assign_v2/libs/assign/v2/test/ref/list_tuple.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/list_tuple.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/list_tuple.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -150,11 +150,11 @@
}
- #undef A
- #undef B
+ #undef A
+ #undef B
{
- // TODO
+ // TODO
typedef const char ar_[2];
#if BOOST_ASSIGN_V2_ENABLE_CPP0X
typedef boost::add_reference<ar_>::type type;
@@ -172,9 +172,9 @@
typedef std::string str_;
assert( str_( get<0>( list.get( i0_() ) ) ) == "x" );
assert( str_( get<0>( list.get( i0_() ) ) ) != "y" );
- }
+ }
- }// test
+ }// test
}// xxx_list_tuple
}// xxx_ref
Modified: sandbox/assign_v2/libs/assign/v2/test/ref/wrapper.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/wrapper.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/wrapper.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -19,18 +19,18 @@
void test()
{
- using namespace boost::assign::v2;
+ using namespace boost::assign::v2;
typedef int val_;
- {
- typedef ref::copy_wrapper<val_>::type w_;
+ {
+ typedef ref::copy_wrapper<val_>::type w_;
w_ w;
val_ a = 1, b = 2, c = 3;
w.rebind( a ); BOOST_ASSIGN_V2_CHECK( &w.get() == &a );
w.assign( b ); BOOST_ASSIGN_V2_CHECK( a == b );
w = c; BOOST_ASSIGN_V2_CHECK( a == c );
}
- {
- typedef ref::copy_wrapper<val_ const>::type w_;
+ {
+ typedef ref::copy_wrapper<val_ const>::type w_;
w_ w;
val_ a = 1;
w.rebind( a ); BOOST_ASSIGN_V2_CHECK( &w.get() == &a );
Modified: sandbox/assign_v2/libs/assign/v2/test/utility/chain.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/utility/chain.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/utility/chain.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -23,14 +23,14 @@
namespace xxx_utility{
namespace xxx_chain{
-
+
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
{
- namespace ns = as2::check_chain_aux;
- { typedef int T; ns::static_<T>(); ns::static_<T>(); }
- { typedef double T; ns::static_<T>(); ns::static_<T>(); }
+ namespace ns = as2::check_chain_aux;
+ { typedef int T; ns::static_<T>(); ns::static_<T>(); }
+ { typedef double T; ns::static_<T>(); ns::static_<T>(); }
}
{
//[chain_r
@@ -39,13 +39,13 @@
std::list<T> list; list.push_back( 2 ); list.push_back( 3 );
std::vector<T> v( boost::begin( ar ), boost::end( ar ) );
boost::copy( list, std::back_inserter( v ) );
- BOOST_ASSIGN_V2_CHECK(
- boost::range::equal( v, ar | as2::_chain( list ) )
+ BOOST_ASSIGN_V2_CHECK(
+ boost::range::equal( v, ar | as2::_chain( list ) )
);
//]
}
{
- //[chain_w
+ //[chain_w
typedef int T; std::vector<T> v( 4 );
v[0] = 1; v[1] = 2; v[2] = 0; v[3] = 5;
boost::array<T, 2> ar; std::list<T> list( v.size() - ar.size() );
@@ -57,7 +57,7 @@
//]
}
- }// test
+ }// test
}// xxx_chain
}// xxx_utility
Modified: sandbox/assign_v2/libs/assign/v2/test/utility/convert.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/utility/convert.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/utility/convert.cpp 2011-02-19 06:59:54 EST (Sat, 19 Feb 2011)
@@ -21,11 +21,11 @@
void test()
{
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
namespace ns = as2::check_aux;
{
- // containers developed in this library are tested in conjunction
+ // containers developed in this library are tested in conjunction
// with converter() in their respective directories
}
{
@@ -33,17 +33,17 @@
std::vector<int> v( 3 ); v[0] = 1; v[1] = 2; v[2] = 0;
typedef boost::array<int, 3> ar_;
BOOST_ASSIGN_V2_CHECK(
- ( as2::converter( v ).type<ar_>() )[1] == v[1]
+ ( as2::converter( v ).type<ar_>() )[1] == v[1]
);
//]
BOOST_ASSIGN_V2_CHECK(
- ( as2::converter( v ).type<ar_>() )[0] == v[0]
+ ( as2::converter( v ).type<ar_>() )[0] == v[0]
);
BOOST_ASSIGN_V2_CHECK(
- ( as2::converter( v ).type<ar_>() )[2] == v[2]
+ ( as2::converter( v ).type<ar_>() )[2] == v[2]
);
}
- {
+ {
//[convert_copy
std::vector<int> v( 3 ); v[0] = -1; v[1] = 0; v[2] = 1;
std::stack<int> lifo = as2::converter( v );
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