C++Guns – RoboBlog

19.08.2016

Best C++ GC ever!

Filed under: Allgemein — Tags: — Thomas @ 11:08

template< typename T>
T* makeObject() {
  static T* obj = nullptr;
  delete obj;
  obj = new T();
  return obj;
}

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress