Opened 11 years ago
Closed 9 years ago
#5962 closed Feature Requests (fixed)
iterator_range assign
Reported by: | Owned by: | Neil Groves | |
---|---|---|---|
Milestone: | To Be Determined | Component: | range |
Version: | Boost 1.47.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Could you add assign() to make it easier to update the iterators after construction?
I'd avoid code like this: static_cast<iterator_range_&>(*this) = iterator_range_(reinterpret_cast<T>(begin), reinterpret_cast<T>(end));
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The snippet of code you provided looks like it is for use within a derived class. I have added assign from both iterators and a range in a recent commit.
Note:
See TracTickets
for help on using tickets.
Could you be more precise? What about providing a patch?