#6305 closed Bugs (duplicate)
range_detail::make_range() copies containers needlessly
| Reported by: | Owned by: | Neil Groves | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | range |
| Version: | Boost 1.48.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
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.
Attachments (3)
Change History (5)
by , 11 years ago
comment:1 by , 11 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

small repro case