[Boost-bugs] [Boost C++ Libraries] #6305: range_detail::make_range() copies containers needlessly

Subject: [Boost-bugs] [Boost C++ Libraries] #6305: range_detail::make_range() copies containers needlessly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-20 09:02:53


#6305: range_detail::make_range() copies containers needlessly
---------------------------------------------------------+------------------
 Reporter: Michael Burr <michael.burr@…> | Owner: neilgroves
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
---------------------------------------------------------+------------------
 When manufacturing a range for the passed in containers,
 range_detail::make_range() calls range_detail::is_char_ptr() which will
 takes its (unused) parameter by value just so `0L` can be returned.

 This means make_range() can't be used with non-copyable classes.

 See http://stackoverflow.com/questions/8571608/why-does-boostequals-
 require-ranges-to-be-copyable for the original report of this problem by
 Mozza314.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6305>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC