Boost logo

Boost Users :

Subject: Re: [Boost-users] [smart_ptr]intrusive_ptr suggestion
From: gast128 (gast128_at_[hidden])
Date: 2010-08-11 17:35:24


<snip>
 
> Perhaps you should initialize the reference count to zero in the
> constructor of IFoo, instead of initializing it to 1.
>
> In Christ,
> Steven Watanabe

Yes but I think it is more natural that the ref count starts at 1 for a ref
counted object. Thats at least the COM protocol


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net