[asterisk-scf-dev] auto_ptr
Kevin P. Fleming
kpfleming at digium.com
Tue Nov 30 09:22:00 CST 2010
On 11/30/2010 07:44 AM, Simon Perreault wrote:
> On 2010-11-30 08:28, Kevin P. Fleming wrote:
>> Besides all of that... auto_ptr was deprecated for a reason. It's fairly
>> easy to misuse, so I'd rather not see usage of it in our code if it can
>> be avoided, since it could lead to others copying that usage and not
>> understanding the subtleties of it.
>
> Could it be possible to use auto_ptr for now and s/auto_ptr/unique_ptr/
> when C++0x arrives, or is the usage that much different?
Note that we are actively pursuing usage of various C++0x features now
(which you'll see more evidence of in the coming weeks), as GCC 4.4.x
and Visual Studio 2010 both already support quite a lot of the current
draft features. Since the draft is very near final voting, it seems
relatively safe to start using these features now as they are not likely
to change before the draft is ratified as a standard.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming at digium.com
Check us out at www.digium.com & www.asterisk.org
More information about the asterisk-scf-dev
mailing list