diff --git a/include/boost/smart_ptr/allocate_unique.hpp b/include/boost/smart_ptr/allocate_unique.hpp index fc3896e..25b37ad 100644 --- a/include/boost/smart_ptr/allocate_unique.hpp +++ b/include/boost/smart_ptr/allocate_unique.hpp @@ -9,7 +9,6 @@ Distributed under the Boost Software License, Version 1.0. #define BOOST_SMART_PTR_ALLOCATE_UNIQUE_HPP #include -#include #include #include #include @@ -27,6 +26,7 @@ Distributed under the Boost Software License, Version 1.0. #include #include #include +#include namespace boost { namespace detail { diff --git a/include/boost/smart_ptr/detail/sp_nullptr_t.hpp b/include/boost/smart_ptr/detail/sp_nullptr_t.hpp deleted file mode 100644 index e877481..0000000 --- a/include/boost/smart_ptr/detail/sp_nullptr_t.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef BOOST_SMART_PTR_DETAIL_SP_NULLPTR_T_HPP_INCLUDED -#define BOOST_SMART_PTR_DETAIL_SP_NULLPTR_T_HPP_INCLUDED - -// MS compatible compilers support #pragma once - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -// detail/sp_nullptr_t.hpp -// -// Copyright 2013 Peter Dimov -// -// Distributed under the Boost Software License, Version 1.0. -// See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt - -#include -#include - -namespace boost -{ - -namespace detail -{ - -#if !defined( BOOST_NO_CXX11_DECLTYPE ) && ( ( defined( __clang__ ) && !defined( _LIBCPP_VERSION ) ) || defined( __INTEL_COMPILER ) ) - - typedef decltype(nullptr) sp_nullptr_t; - -#else - - typedef std::nullptr_t sp_nullptr_t; - -#endif - -} // namespace detail - -} // namespace boost - -#endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_NULLPTR_T_HPP_INCLUDED diff --git a/include/boost/smart_ptr/intrusive_ptr.hpp b/include/boost/smart_ptr/intrusive_ptr.hpp index c76680d..f2daf91 100644 --- a/include/boost/smart_ptr/intrusive_ptr.hpp +++ b/include/boost/smart_ptr/intrusive_ptr.hpp @@ -14,7 +14,6 @@ // #include -#include #include #include #include @@ -22,6 +21,7 @@ #include // for std::less #include // for std::basic_ostream +#include namespace boost { diff --git a/include/boost/smart_ptr/scoped_array.hpp b/include/boost/smart_ptr/scoped_array.hpp index 9051292..43bee79 100644 --- a/include/boost/smart_ptr/scoped_array.hpp +++ b/include/boost/smart_ptr/scoped_array.hpp @@ -10,12 +10,10 @@ // // See http://www.boost.org/libs/smart_ptr/ for documentation. -#include -#include -#include -#include #include - +#include +#include +#include #include #include // for std::ptrdiff_t diff --git a/include/boost/smart_ptr/scoped_ptr.hpp b/include/boost/smart_ptr/scoped_ptr.hpp index 1e2f3a9..1909496 100644 --- a/include/boost/smart_ptr/scoped_ptr.hpp +++ b/include/boost/smart_ptr/scoped_ptr.hpp @@ -10,13 +10,13 @@ // // See http://www.boost.org/libs/smart_ptr/ for documentation. -#include -#include -#include -#include #include #include +#include +#include #include +#include +#include #ifndef BOOST_NO_AUTO_PTR # include // for std::auto_ptr diff --git a/include/boost/smart_ptr/shared_array.hpp b/include/boost/smart_ptr/shared_array.hpp index 557b07c..e032983 100644 --- a/include/boost/smart_ptr/shared_array.hpp +++ b/include/boost/smart_ptr/shared_array.hpp @@ -14,22 +14,17 @@ // See http://www.boost.org/libs/smart_ptr/ for documentation. // -#include // for broken compiler workarounds - -#include // TR1 cyclic inclusion fix - -#include -#include - #include #include -#include #include +#include +#include +#include #include -#include // for std::ptrdiff_t #include // for std::swap #include // for std::less +#include // for std::ptrdiff_t namespace boost { diff --git a/include/boost/smart_ptr/shared_ptr.hpp b/include/boost/smart_ptr/shared_ptr.hpp index 8fb02ba..cec0930 100644 --- a/include/boost/smart_ptr/shared_ptr.hpp +++ b/include/boost/smart_ptr/shared_ptr.hpp @@ -16,7 +16,6 @@ #include #include -#include #include #include #include diff --git a/test/local_sp_test.cpp b/test/local_sp_test.cpp index d0262b3..4d35c50 100644 --- a/test/local_sp_test.cpp +++ b/test/local_sp_test.cpp @@ -222,7 +222,7 @@ static void deleter_constructor() // nullptr_deleter_constructor -void deleter3( boost::detail::sp_nullptr_t ) +void deleter3( std::nullptr_t ) { ++m; } diff --git a/test/sp_nullptr_test.cpp b/test/sp_nullptr_test.cpp index 341465b..e5e276a 100644 --- a/test/sp_nullptr_test.cpp +++ b/test/sp_nullptr_test.cpp @@ -9,7 +9,6 @@ // #include -#include #include #include #include @@ -36,7 +35,7 @@ private: int X::instances = 0; -void f( boost::detail::sp_nullptr_t ) +void f( std::nullptr_t ) { }