std::auto_ptr

Discussion about CodeLite development process and patches
ndk
CodeLite Enthusiast
Posts: 10
Joined: Sun Jun 14, 2009 6:58 pm
Contact:

std::auto_ptr

Post by ndk »

Hello Eran!
I have one question. Why do not use std::auto_ptr?
As a rule using not owned pointers is not safe.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: std::auto_ptr

Post by eranif »

codelite is using SmartPtr - a smart ptr + reference counting.
auto_ptr does not have a reference counting, which makes it expensive
Eran
Make sure you have read the HOW TO POST thread
Post Reply