From bf31a25fa5198a7b8ce4054338f268496b5902b7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 2 Oct 2024 21:18:08 +0300 Subject: [PATCH] Remove use of boost::has_virtual_destructor from pointer_cast.hpp --- include/boost/pointer_cast.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/pointer_cast.hpp b/include/boost/pointer_cast.hpp index 1b6e38a..a19fcb6 100644 --- a/include/boost/pointer_cast.hpp +++ b/include/boost/pointer_cast.hpp @@ -10,9 +10,8 @@ #ifndef BOOST_POINTER_CAST_HPP #define BOOST_POINTER_CAST_HPP -#include -#include #include +#include namespace boost { @@ -79,7 +78,7 @@ template std::unique_ptr dynamic_pointer_cast( std::unique_ { (void) dynamic_cast< T* >( static_cast< U* >( 0 ) ); - static_assert( boost::has_virtual_destructor::value, "The target of dynamic_pointer_cast must have a virtual destructor." ); + static_assert( std::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();