|
Boost-Commit : |
From: technews_at_[hidden]
Date: 2008-05-27 19:26:17
Author: turkanis
Date: 2008-05-27 19:26:16 EDT (Tue, 27 May 2008)
New Revision: 45841
URL: http://svn.boost.org/trac/boost/changeset/45841
Log:
fixed tests for grep_filter::count() by passing a reference wrapper instead of a copy to io::compose
Text files modified:
trunk/libs/iostreams/test/grep_test.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: trunk/libs/iostreams/test/grep_test.cpp
==============================================================================
--- trunk/libs/iostreams/test/grep_test.cpp (original)
+++ trunk/libs/iostreams/test/grep_test.cpp 2008-05-27 19:26:16 EDT (Tue, 27 May 2008)
@@ -259,18 +259,18 @@
{
array_source src(input.data(), input.data() + input.size());
std::string dest;
- io::copy(compose(grep, src), io::back_inserter(dest));
+ io::copy(compose(boost::ref(grep), src), io::back_inserter(dest));
BOOST_CHECK(dest == output);
- //BOOST_CHECK(grep.count() == count);
+ BOOST_CHECK(grep.count() == count);
}
// Test as output filter
{
array_source src(input.data(), input.data() + input.size());
std::string dest;
- io::copy(src, compose(grep, io::back_inserter(dest)));
+ io::copy(src, compose(boost::ref(grep), io::back_inserter(dest)));
BOOST_CHECK(dest == output);
- //BOOST_CHECK(grep.count() == count);
+ BOOST_CHECK(grep.count() == count);
}
}
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