|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80617 - trunk/boost/algorithm/cxx11
From: marshall_at_[hidden]
Date: 2012-09-21 10:49:32
Author: marshall
Date: 2012-09-21 10:49:32 EDT (Fri, 21 Sep 2012)
New Revision: 80617
URL: http://svn.boost.org/trac/boost/changeset/80617
Log:
Fix bugs in copy_if; add basic tests. Refs #7400. Thanks to Hideaki Takei for the catch
Text files modified:
trunk/boost/algorithm/cxx11/copy_if.hpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/boost/algorithm/cxx11/copy_if.hpp
==============================================================================
--- trunk/boost/algorithm/cxx11/copy_if.hpp (original)
+++ trunk/boost/algorithm/cxx11/copy_if.hpp 2012-09-21 10:49:32 EDT (Fri, 21 Sep 2012)
@@ -39,7 +39,7 @@
{
for ( ; first != last; ++first )
if (p(*first))
- *result++ = first;
+ *result++ = *first;
return result;
}
#endif
@@ -75,7 +75,7 @@
OutputIterator result, Predicate p )
{
for ( ; first != last && p(*first); ++first )
- *result++ = first;
+ *result++ = *first;
return result;
}
@@ -109,7 +109,7 @@
OutputIterator copy_until ( InputIterator first, InputIterator last, OutputIterator result, Predicate p )
{
for ( ; first != last && !p(*first); ++first )
- *result++ = first;
+ *result++ = *first;
return result;
}
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