Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60863 - sandbox/statistics/detail/assign/libs/assign/example
From: erwann.rogard_at_[hidden]
Date: 2010-03-26 11:21:53


Author: e_r
Date: 2010-03-26 11:21:51 EDT (Fri, 26 Mar 2010)
New Revision: 60863
URL: http://svn.boost.org/trac/boost/changeset/60863

Log:
m
Text files modified:
   sandbox/statistics/detail/assign/libs/assign/example/range.cpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: sandbox/statistics/detail/assign/libs/assign/example/range.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/example/range.cpp (original)
+++ sandbox/statistics/detail/assign/libs/assign/example/range.cpp 2010-03-26 11:21:51 EDT (Fri, 26 Mar 2010)
@@ -41,7 +41,11 @@
     BOOST_AUTO(tmp2,ref_list_of(c)(d));
     BOOST_AUTO(tmp3,ref_list_of(e)(f));
 
- std::vector<val_> v = tmp1.converter;
+ typedef std::vector<val_> vec_;
+
+ tmp1.convert_to_container<std::vector<val_> >();
+
+ vec_ v = chain_r(tmp1)(tmp2)(tmp3).convert_to_container<vec_>();
     boost::copy(
         v,
         std::ostream_iterator<val_>(os," "));


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