Author Topic: SDK smart pointer  (Read 4399 times)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
SDK smart pointer
« on: November 22, 2013, 06:50:28 pm »
Hi,
is there a implementation of a smart pointer in the sdk?

greetings

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: SDK smart pointer
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: SDK smart pointer
« Reply #2 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!