
22 Apr
2011
22 Apr
'11
8 a.m.
On Fri, 22 Apr 2011 13:30:59 +0600, Phil Bouchard <philippe@fornux.com> wrote:
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); void bar() { foo(new shifted<int>(42), new shifted<int>(43)); } due to unspecified order of arguments' evaluation.