Created
December 27, 2015 13:48
-
-
Save TheOpenDevProject/9e55c1cb24a78d1d87f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<typename T, typename ...Args> | |
std::unique_ptr<T> make_unique(Args&& ...args){ | |
return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment