Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: BlueHazzard on November 22, 2013, 06:50:28 PM

Title: SDK smart pointer
Post by: BlueHazzard on November 22, 2013, 06:50:28 PM
Hi,
is there a implementation of a smart pointer in the sdk?

greetings
Title: Re: SDK smart pointer
Post by: oBFusCATed on November 23, 2013, 05:29:31 PM
What smart pointer?
You can use cb::shared_ptr and cb::weak_ptr.
Both are aliases for the std::tr1 versions.
Title: Re: SDK smart pointer
Post by: BlueHazzard on November 23, 2013, 05:59:40 PM
a pointer with refcounting...

Quote from: oBFusCATed on November 23, 2013, 05:29:31 PM
What smart pointer?
You can use cb::shared_ptr and cb::weak_ptr.
Both are aliases for the std::tr1 versions.

i knew that there was something like that,
thx!