diff --git a/include/boost/smart_ptr/make_unique.hpp b/include/boost/smart_ptr/make_unique.hpp index f1f4a7c..48191b7 100644 --- a/include/boost/smart_ptr/make_unique.hpp +++ b/include/boost/smart_ptr/make_unique.hpp @@ -24,16 +24,13 @@ struct up_if_object { }; template -struct up_if_object { -}; +struct up_if_object { }; template -struct up_if_object { -}; +struct up_if_object { }; template -struct up_if_array { -}; +struct up_if_array { }; template struct up_if_array { @@ -46,8 +43,7 @@ struct up_value { }; template -struct up_element { -}; +struct up_element { }; template struct up_element { @@ -56,8 +52,7 @@ struct up_element { } /* detail */ template -inline typename detail::up_if_object::type -make_unique() +inline typename detail::up_if_object::type make_unique() { return std::unique_ptr(new T()); } @@ -65,7 +60,7 @@ make_unique() #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) template inline typename detail::up_if_object::type -make_unique(Args&&... args) + make_unique(Args&&... args) { return std::unique_ptr(new T(std::forward(args)...)); } @@ -73,21 +68,19 @@ make_unique(Args&&... args) template inline typename detail::up_if_object::type -make_unique(typename detail::up_value::type value) + make_unique(typename detail::up_value::type value) { return std::unique_ptr(new T(std::move(value))); } template -inline typename detail::up_if_object::type -make_unique_noinit() +inline typename detail::up_if_object::type make_unique_noinit() { return std::unique_ptr(new T); } template -inline typename detail::up_if_array::type -make_unique(std::size_t n) +inline typename detail::up_if_array::type make_unique(std::size_t n) { return std::unique_ptr(new typename detail::up_element::type[n]()); @@ -95,7 +88,7 @@ make_unique(std::size_t n) template inline typename detail::up_if_array::type -make_unique_noinit(std::size_t n) + make_unique_noinit(std::size_t n) { return std::unique_ptr(new typename detail::up_element::type[n]); diff --git a/test/make_shared_arrays_test.cpp b/test/make_shared_arrays_test.cpp index 6c02db7..7cd067f 100644 --- a/test/make_shared_arrays_test.cpp +++ b/test/make_shared_arrays_test.cpp @@ -1,11 +1,11 @@ /* - * Copyright (c) 2012-2014 Glen Joseph Fernandes - * glenfe at live dot com - * - * Distributed under the Boost Software License, - * Version 1.0. (See accompanying file LICENSE_1_0.txt - * or copy at http://boost.org/LICENSE_1_0.txt) - */ +(c) 2012-2015 Glen Joseph Fernandes + + +Distributed under the Boost Software +License, Version 1.0. +http://boost.org/LICENSE_1_0.txt +*/ #include #include