From 4fadd968fa12130524c8380f33fcfe25d4de79e5 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Wed, 13 Sep 2017 11:24:46 +0900 Subject: Imported Upstream version 1.65.0 Change-Id: Icf8400b375482cb11bcf77440a6934ba360d6ba4 Signed-off-by: DongHun Kwak --- boost/smart_ptr/make_shared_object.hpp | 38 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'boost/smart_ptr/make_shared_object.hpp') diff --git a/boost/smart_ptr/make_shared_object.hpp b/boost/smart_ptr/make_shared_object.hpp index 3bc78ee9ae..c681602dca 100644 --- a/boost/smart_ptr/make_shared_object.hpp +++ b/boost/smart_ptr/make_shared_object.hpp @@ -9,14 +9,14 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // -// See http://www.boost.org/libs/smart_ptr/make_shared.html -// for documentation. +// See http://www.boost.org/libs/smart_ptr/ for documentation. #include #include #include #include #include +#include #include #include #include @@ -48,7 +48,7 @@ private: private: - void destroy() + void destroy() BOOST_SP_NOEXCEPT { if( initialized_ ) { @@ -70,39 +70,39 @@ private: public: - sp_ms_deleter() BOOST_NOEXCEPT : initialized_( false ) + sp_ms_deleter() BOOST_SP_NOEXCEPT : initialized_( false ) { } - template explicit sp_ms_deleter( A const & ) BOOST_NOEXCEPT : initialized_( false ) + template explicit sp_ms_deleter( A const & ) BOOST_SP_NOEXCEPT : initialized_( false ) { } // optimization: do not copy storage_ - sp_ms_deleter( sp_ms_deleter const & ) BOOST_NOEXCEPT : initialized_( false ) + sp_ms_deleter( sp_ms_deleter const & ) BOOST_SP_NOEXCEPT : initialized_( false ) { } - ~sp_ms_deleter() + ~sp_ms_deleter() BOOST_SP_NOEXCEPT { destroy(); } - void operator()( T * ) + void operator()( T * ) BOOST_SP_NOEXCEPT { destroy(); } - static void operator_fn( T* ) // operator() can't be static + static void operator_fn( T* ) BOOST_SP_NOEXCEPT // operator() can't be static { } - void * address() BOOST_NOEXCEPT + void * address() BOOST_SP_NOEXCEPT { return storage_.data_; } - void set_initialized() BOOST_NOEXCEPT + void set_initialized() BOOST_SP_NOEXCEPT { initialized_ = true; } @@ -120,7 +120,7 @@ private: private: - void destroy() + void destroy() BOOST_SP_NOEXCEPT { if( initialized_ ) { @@ -142,35 +142,35 @@ private: public: - sp_as_deleter( A const & a ) BOOST_NOEXCEPT : a_( a ), initialized_( false ) + sp_as_deleter( A const & a ) BOOST_SP_NOEXCEPT : a_( a ), initialized_( false ) { } // optimization: do not copy storage_ - sp_as_deleter( sp_as_deleter const & r ) BOOST_NOEXCEPT : a_( r.a_), initialized_( false ) + sp_as_deleter( sp_as_deleter const & r ) BOOST_SP_NOEXCEPT : a_( r.a_), initialized_( false ) { } - ~sp_as_deleter() + ~sp_as_deleter() BOOST_SP_NOEXCEPT { destroy(); } - void operator()( T * ) + void operator()( T * ) BOOST_SP_NOEXCEPT { destroy(); } - static void operator_fn( T* ) // operator() can't be static + static void operator_fn( T* ) BOOST_SP_NOEXCEPT // operator() can't be static { } - void * address() BOOST_NOEXCEPT + void * address() BOOST_SP_NOEXCEPT { return storage_.data_; } - void set_initialized() BOOST_NOEXCEPT + void set_initialized() BOOST_SP_NOEXCEPT { initialized_ = true; } -- cgit v1.2.3