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...

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!