|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60082 - sandbox/statistics/detail/iterator/libs/iterator/example
From: erwann.rogard_at_[hidden]
Date: 2010-03-02 16:19:11
Author: e_r
Date: 2010-03-02 16:19:10 EST (Tue, 02 Mar 2010)
New Revision: 60082
URL: http://svn.boost.org/trac/boost/changeset/60082
Log:
m
Text files modified:
sandbox/statistics/detail/iterator/libs/iterator/example/deduce_sig.cpp | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
Modified: sandbox/statistics/detail/iterator/libs/iterator/example/deduce_sig.cpp
==============================================================================
--- sandbox/statistics/detail/iterator/libs/iterator/example/deduce_sig.cpp (original)
+++ sandbox/statistics/detail/iterator/libs/iterator/example/deduce_sig.cpp 2010-03-02 16:19:10 EST (Tue, 02 Mar 2010)
@@ -92,11 +92,16 @@
);
os << std::endl;
- typedef boost::range_iterator<const vec_>::type c_it_;
-
- make_transform_iterator2<bool>(
- boost::const_begin(vec), // will not compile with begin(vec);
- is_zero
+ std::copy(
+ make_transform_iterator2<bool>(
+ boost::const_begin(vec),
+ is_zero
+ ),
+ make_transform_iterator2<bool>(
+ boost::const_end(vec),
+ is_zero
+ ),
+ 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