From 123040290c13304ab1a2272069e1a4382560ae73 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 25 Sep 2024 18:12:37 +0300 Subject: [PATCH] Remove use of BOOST_STATIC_ASSERT_MSG --- include/boost/pointer_cast.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/pointer_cast.hpp b/include/boost/pointer_cast.hpp index 0aa0a9c..5c791c0 100644 --- a/include/boost/pointer_cast.hpp +++ b/include/boost/pointer_cast.hpp @@ -12,7 +12,6 @@ #include #include -#include #include #include @@ -81,7 +80,7 @@ template std::unique_ptr dynamic_pointer_cast( std::unique_ { (void) dynamic_cast< T* >( static_cast< U* >( 0 ) ); - BOOST_STATIC_ASSERT_MSG( boost::has_virtual_destructor::value, "The target of dynamic_pointer_cast must have a virtual destructor." ); + static_assert( boost::has_virtual_destructor::value, "The target of dynamic_pointer_cast must have a virtual destructor." ); T * p = dynamic_cast( r.get() ); if( p ) r.release();