Cosmetic changes in make_shared and make_unique

This commit is contained in:
Glen Fernandes
2014-02-10 21:04:41 -08:00
parent 5f485c2952
commit 57dc400fbf
6 changed files with 24 additions and 24 deletions

View File

@@ -13,14 +13,14 @@
#include <boost/smart_ptr/detail/array_traits.hpp>
namespace boost {
template<typename T>
template<class T>
inline typename boost::detail::up_if_array<T>::type
make_unique(std::size_t size) {
typedef typename boost::detail::array_inner<T>::type U;
return std::unique_ptr<T>(new U[size]());
}
template<typename T>
template<class T>
inline typename boost::detail::up_if_array<T>::type
make_unique_noinit(std::size_t size) {
typedef typename boost::detail::array_inner<T>::type U;