Subject: Re: [boost] [Shifted Pointer] Review Request
From: Ilya Sokolov (ilyasokol_at_[hidden])
Date: 2011-04-22 04:00:46
On Fri, 22 Apr 2011 13:30:59 +0600, Phil Bouchard <philippe_at_[hidden]>
> On 4/22/2011 12:17 AM, Ilya Sokolov wrote:
>>> shifted_ptr<int> v = new shifted<int>(11);
>> @Phil Bouchard: shouldn't the constructor be explicit?
> I am not under the impression that is a necessity.
Then the following code is not exception-safe:
void foo(shifted_ptr<int> a, shifted_ptr<int> b);
foo(new shifted<int>(42), new shifted<int>(43));
due to unspecified order of arguments' evaluation.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk