From 26cf7ff74456f59f8b40401deb009c1258f852b3 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 24 Sep 2024 18:44:53 +0300 Subject: [PATCH] Remove uses of BOOST_NO_FUNCTION_TEMPLATE_ORDERING --- include/boost/smart_ptr/detail/shared_count.hpp | 8 -------- include/boost/smart_ptr/make_shared_object.hpp | 6 +----- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/include/boost/smart_ptr/detail/shared_count.hpp b/include/boost/smart_ptr/detail/shared_count.hpp index 0269d57..17c6a96 100644 --- a/include/boost/smart_ptr/detail/shared_count.hpp +++ b/include/boost/smart_ptr/detail/shared_count.hpp @@ -194,8 +194,6 @@ public: #endif } -#if !defined( BOOST_NO_FUNCTION_TEMPLATE_ORDERING ) - template< class P, class D > shared_count( P p, sp_inplace_tag ): pi_( 0 ) #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) , id_(shared_count_id) @@ -226,8 +224,6 @@ public: #endif // #ifndef BOOST_NO_EXCEPTIONS } -#endif // !defined( BOOST_NO_FUNCTION_TEMPLATE_ORDERING ) - template shared_count( P p, D d, A a ): pi_( 0 ) #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) , id_(shared_count_id) @@ -283,8 +279,6 @@ public: #endif } -#if !defined( BOOST_NO_FUNCTION_TEMPLATE_ORDERING ) - template< class P, class D, class A > shared_count( P p, sp_inplace_tag< D >, A a ): pi_( 0 ) #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) , id_(shared_count_id) @@ -340,8 +334,6 @@ public: #endif // #ifndef BOOST_NO_EXCEPTIONS } -#endif // !defined( BOOST_NO_FUNCTION_TEMPLATE_ORDERING ) - #ifndef BOOST_NO_AUTO_PTR // auto_ptr is special cased to provide the strong guarantee diff --git a/include/boost/smart_ptr/make_shared_object.hpp b/include/boost/smart_ptr/make_shared_object.hpp index d9d4cb9..44d89f0 100644 --- a/include/boost/smart_ptr/make_shared_object.hpp +++ b/include/boost/smart_ptr/make_shared_object.hpp @@ -191,11 +191,7 @@ template< class T, std::size_t N > struct sp_if_not_array< T[N] > } // namespace detail -#if !defined( BOOST_NO_FUNCTION_TEMPLATE_ORDERING ) -# define BOOST_SP_MSD( T ) boost::detail::sp_inplace_tag< boost::detail::sp_ms_deleter< T > >() -#else -# define BOOST_SP_MSD( T ) boost::detail::sp_ms_deleter< T >() -#endif +#define BOOST_SP_MSD( T ) boost::detail::sp_inplace_tag< boost::detail::sp_ms_deleter< T > >() // _noinit versions