cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
538 stars 59 forks source link

Bring make_ref() semantics on par with std::make_shared() #262

Closed mrzzzrm closed 9 years ago

mrzzzrm commented 9 years ago

This changes the semantics of globjects::make_ref() from being a wrapper around a call to a constructor of globjects::ref_ptr() to those of std::make_shared() (and std::make_unique()) thus enabling "new-free" programming with globjects. Herb Sutter would approve this.

I also added a little test for the function.

cgcostume commented 9 years ago

thanks a lot! - :ship: