diff --git a/ixwebsocket/IXUniquePtr.h b/ixwebsocket/IXUniquePtr.h new file mode 100644 index 00000000..24856285 --- /dev/null +++ b/ixwebsocket/IXUniquePtr.h @@ -0,0 +1,18 @@ +/* + * IXUniquePtr.h + * Author: Benjamin Sergeant + * Copyright (c) 2020 Machine Zone, Inc. All rights reserved. + */ + +#pragma once + +#include + +namespace ix +{ + template + std::unique_ptr make_unique(Args&&... args) + { + return std::unique_ptr(new T(std::forward(args)...)); + } +}