diff --git a/Util.h b/Util.h new file mode 100644 index 0000000..64a1094 --- /dev/null +++ b/Util.h @@ -0,0 +1,17 @@ +#include + +#ifndef _WIN32 + +namespace std +{ + +template +std::unique_ptr make_unique( Args&& ...args ) +{ + return std::unique_ptr( new T( std::forward(args)... ) ); +} + +}; + +#endif +