Boost logo

Boost :

Subject: Re: [boost] [range] Should ranges really propagate constess to the data ?
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2011-07-25 03:53:09


Den 23-07-2011 15:16, Mathias Gaunard skrev:

> Whether the sub_range object is a temporary or not should not affect
> whether the wrapped object is writable or not.

You can always use iterator_range or std::make_pair() in this case.

The problem also goes away with move-semantics.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk