On 10/21/2016 01:18 AM, Nicholas Wilson wrote:
Is it legal to `.save` a const range, and then use it (provided it does not mutate any object reachable from bar)?
Sure, if it doesn't involve a cast, i.e. if save is const.
On 10/21/2016 01:18 AM, Nicholas Wilson wrote:
Is it legal to `.save` a const range, and then use it (provided it does not mutate any object reachable from bar)?
Sure, if it doesn't involve a cast, i.e. if save is const.