Opened 11 years ago

Closed 9 years ago

#5962 closed Feature Requests (fixed)

iterator_range assign

Reported by: olafvdspek@… 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 viboes, 9 years ago

Could you be more precise? What about providing a patch?

comment:2 by Neil Groves, 9 years ago

Resolution: fixed
Status: newclosed

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.