diff options
Diffstat (limited to 'include/make_unique.h')
| -rw-r--r-- | include/make_unique.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/make_unique.h b/include/make_unique.h index a475a4a734..513cbcf69f 100644 --- a/include/make_unique.h +++ b/include/make_unique.h @@ -31,13 +31,13 @@ namespace nbt { -///Creates a new object of type T and returns a std::unique_ptr to it -template<class T, class... Args> -std::unique_ptr<T> make_unique(Args&&... args) -{ - return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); -} + /// Creates a new object of type T and returns a std::unique_ptr to it + template <class T, class... Args> + std::unique_ptr<T> make_unique(Args&&... args) + { + return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); + } -} +} // namespace nbt #endif // MAKE_UNIQUE_H_INCLUDED |
