|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60557 - in sandbox/statistics/detail/assign: boost/assign/auto_size/chain boost/assign/auto_size/detail libs/assign/doc libs/assign/src
From: erwann.rogard_at_[hidden]
Date: 2010-03-13 09:54:39
Author: e_r
Date: 2010-03-13 09:54:37 EST (Sat, 13 Mar 2010)
New Revision: 60557
URL: http://svn.boost.org/trac/boost/changeset/60557
Log:
m
Text files modified:
sandbox/statistics/detail/assign/boost/assign/auto_size/chain/auto_convert.hpp | 6 ++----
sandbox/statistics/detail/assign/boost/assign/auto_size/chain/converter.hpp | 4 ++--
sandbox/statistics/detail/assign/boost/assign/auto_size/chain/pair_range_traits.hpp | 3 ++-
sandbox/statistics/detail/assign/boost/assign/auto_size/chain/pair_traits.hpp | 6 ++----
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp | 7 +++----
sandbox/statistics/detail/assign/libs/assign/doc/index.html | 5 ++---
sandbox/statistics/detail/assign/libs/assign/src/main.cpp | 5 +----
7 files changed, 14 insertions(+), 22 deletions(-)
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/chain/auto_convert.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/chain/auto_convert.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/chain/auto_convert.hpp 2010-03-13 09:54:37 EST (Sat, 13 Mar 2010)
@@ -21,10 +21,8 @@
//
// Requirements : if either of r1 or r1 contains reference wrappers (W) pointing
// to some type T,
-// is_ref_wrapper<W>::type boolean constant
-// ref_wrapper_traits::meta::value_of<W>::type class
-// Bugs:
-// const ranges cause BAD_EXC_ACCESS
+// is_ref_wrapper<W>::value true
+// ref_wrapper_traits::meta::value_of<W>::type T
namespace boost{
namespace assign{
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/chain/converter.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/chain/converter.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/chain/converter.hpp 2010-03-13 09:54:37 EST (Sat, 13 Mar 2010)
@@ -32,8 +32,8 @@
template<typename U>
T operator()(U& arg)const{ return arg; }
- //template<typename U>
- //T operator()(const U& arg)const{ return arg; }
+ template<typename U>
+ T operator()(const U& arg)const{ return arg; }
};
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/chain/pair_range_traits.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/chain/pair_range_traits.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/chain/pair_range_traits.hpp 2010-03-13 09:54:37 EST (Sat, 13 Mar 2010)
@@ -13,7 +13,8 @@
#include <boost/assign/auto_size/chain/converter.hpp>
#include <boost/assign/auto_size/chain/is_reference_wrapper.hpp>
-// Maps (R1,R2) to a reference that is convertible to by each elem of either.
+// Maps (R1,R2) to a type convertible to by either of the dereference type of
+// either of the input ranges.
namespace boost{
namespace assign{
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/chain/pair_traits.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/chain/pair_traits.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/chain/pair_traits.hpp 2010-03-13 09:54:37 EST (Sat, 13 Mar 2010)
@@ -19,10 +19,8 @@
#include <boost/type_traits/remove_reference.hpp>
#include <boost/assign/auto_size/chain/reference_traits.hpp>
-// These traits maps T and U, each of which may identify a reference wrapper,
-// to V such that
-// V v1 = t; V v2 = u;
-// is a valid expression. U and T may be references or reference wrappers
+// Maps (T,U) to a type that both are convertible to. In particular, T and U
+// may be reference wrappers.
namespace boost{
namespace assign{
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp 2010-03-13 09:54:37 EST (Sat, 13 Mar 2010)
@@ -44,10 +44,9 @@
// Acknowledgement: The idea of this class was developed in collaboration
// with M.P.G
//
-// To comply AMAP with the rest of the Boost.Assign framework, has method
-// range<int>() but its size must be specified explicitly which defeats
-// the purpose of this framework. A better approach using boost::chain is a work
-// in progress.
+// range<int>() is provided to achieve conformity with the rest of Boost.Assign
+// but it is in fact ill suited here. The policy P, however, will usually
+// interoperate with chain_auto_convert which serves a similar purpose.
namespace boost{
namespace assign{
Modified: sandbox/statistics/detail/assign/libs/assign/doc/index.html
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/doc/index.html (original)
+++ sandbox/statistics/detail/assign/libs/assign/doc/index.html 2010-03-13 09:54:37 EST (Sat, 13 Mar 2010)
@@ -488,9 +488,8 @@
<span class=preprocessor>#include</span> <span class=special><</span><span class=identifier>boost</span><span class=special>/</span><span class=identifier>assign</span><span class=special>/</span><span class=identifier>auto_size</span><span class=special>/</span><span class=identifier>ref_list_of</span><span class=special>.</span><span class=identifier>hpp</span><span class=special>></span>
<span class=special>{</span>
- <span class=identifier>BOOST_AUTO</span><span class=special>( </span><span class=identifier>t1</span><span class=special>, </span><span class=identifier>ref_list_of</span>(</span><span class=identifier>x</span><span class=special>).</span><span class=identifier>chain_auto_convert</span><span class=special>(</span><span class=identifier>v2</span><span class=special>)</span><span class=special> );</span>
- <span class=identifier>BOOST_AUTO</span><span class=special>( </span><span class=identifier>t2</span><span class=special>, </span><span class=identifier>ref_list_of</span>(</span><span class=identifier>y</span><span class=special>)</span> <span class=special>)</span><span class=special>;</span>
- <span class=identifier>BOOST_ASSERT</span><span class=special>( </span><span class=identifier>chain_auto_convert</span><span class=special>(</span> <span class=identifier>t1</span><span class=special> , </span><span class=identifier>t2</span> <span class=special>)</span><span class=special>.</span><span class=identifier>size</span><span class=special>(</span><span class=special>)</span><span class=special> == </span><span class=number>10u</span><span class=special> )</span><span class=special>;</span>
+ <span class=identifier>BOOST_ASSERT</span><span class=special>( </span><span class=identifier>chain_auto_convert</span><span class=special>(</span>
+ </span><span class=identifier>ref_list_of</span>(</span><span class=identifier>x</span><span class=special>).</span><span class=identifier>chain_auto_convert</span><span class=special>(</span><span class=identifier>v2</span><span class=special>)</span><span class=special> , </span><span class=identifier>ref_list_of</span>(</span><span class=identifier>y</span><span class=special>)</span> <span class=special>)</span><span class=special>.</span><span class=identifier>size</span><span class=special>(</span><span class=special>)</span><span class=special> == </span><span class=number>10u</span><span class=special> )</span><span class=special>;</span>
<span class=special>}</span></pre>
</blockquote>
Modified: sandbox/statistics/detail/assign/libs/assign/src/main.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/src/main.cpp (original)
+++ sandbox/statistics/detail/assign/libs/assign/src/main.cpp 2010-03-13 09:54:37 EST (Sat, 13 Mar 2010)
@@ -3,17 +3,14 @@
#include <boost/assign/auto_size/check/ref_list_of.hpp>
#include <boost/assign/auto_size/check/ref_csv.hpp>
#undef BOOST_ASSIGN_CHECK_EQUAL
-#include <libs/assign/example/chain.h>
int main (int argc, char * const argv[]) {
boost::assign::detail::auto_size::check_ref_list_of<int>();
- //std::cout << "check_ref_list_of : ok" << std::endl;
+ std::cout << "check_ref_list_of : ok" << std::endl;
//boost::assign::detail::auto_size::check_ref_csv<int>();
//std::cout << "check_ref_csv : ok" << std::endl;
- example_chain(std::cout);
-
return 0;
}
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