Boost.Range correct missing items from merge by merging these changes manually.

This changeset is what should have happened with the prior svn merge operation.

[SVN r61519]
This commit is contained in:
Neil Groves
2010-04-23 23:18:59 +00:00
parent a47f15a98f
commit f9eeb5d447
6 changed files with 18 additions and 9 deletions

View File

@ -23,13 +23,14 @@ namespace boost
{
template< class Container, class Range >
inline void push_back( Container& on, const Range& from )
inline Container& push_back( Container& on, const Range& from )
{
BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<Container> ));
BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<const Range> ));
BOOST_ASSERT( (void*)&on != (void*)&from &&
"cannot copy from a container to itself" );
on.insert( on.end(), boost::begin(from), boost::end(from) );
return on;
}
} // namespace range