|
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#if !defined(_MSC_VER) && __cplusplus < 201402L
|
|
namespace std
|
|
{
|
|
template<typename T, typename... Args>
|
|
std::unique_ptr<T> make_unique(Args&&... args)
|
|
{
|
|
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
|
}
|
|
}
|
|
#endif
|