diff --git a/doc/poly_collection.qbk b/doc/poly_collection.qbk index 52669fa..6e2c59d 100644 --- a/doc/poly_collection.qbk +++ b/doc/poly_collection.qbk @@ -1,7 +1,7 @@ [library Boost.PolyCollection [quickbook 1.6] [authors [López Muñoz, Joaquín M]] - [copyright 2016-2019 Joaquín M López Muñoz] + [copyright 2016-2020 Joaquín M López Muñoz] [category containers] [id poly_collection] [dirname poly_collection] @@ -1122,6 +1122,12 @@ to allow for the definition of container-level `operator<` and related operators [section Release notes] +[section Boost 1.73] + +* Suppressed a potential redundant move warning in `boost::poly_collection::for_each`. + +[endsect] + [section Boost 1.72] * Maintenance work. diff --git a/include/boost/poly_collection/algorithm.hpp b/include/boost/poly_collection/algorithm.hpp index ddca782..67c4fc3 100644 --- a/include/boost/poly_collection/algorithm.hpp +++ b/include/boost/poly_collection/algorithm.hpp @@ -1,4 +1,4 @@ -/* Copyright 2016-2018 Joaquin M Lopez Munoz. +/* Copyright 2016-2020 Joaquin M Lopez Munoz. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) @@ -106,7 +106,7 @@ template< Function for_each(const Iterator& first,const Iterator& last,Function f) { for_each_segment(first,last,restitute_range(for_each_alg{},f)); - return std::move(f); + return f; } struct for_each_n_alg