Skip to content

Commit 93152bd

Browse files
committed
Remove use of boost::has_virtual_destructor from pointer_cast.hpp
1 parent bcd285c commit 93152bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/boost/pointer_cast.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
#ifndef BOOST_POINTER_CAST_HPP
1111
#define BOOST_POINTER_CAST_HPP
1212

13-
#include <boost/type_traits/has_virtual_destructor.hpp>
14-
#include <boost/config.hpp>
1513
#include <memory>
14+
#include <type_traits>
1615

1716
namespace boost {
1817

@@ -79,7 +78,7 @@ template<class T, class U> std::unique_ptr<T> dynamic_pointer_cast( std::unique_
7978
{
8079
(void) dynamic_cast< T* >( static_cast< U* >( 0 ) );
8180

82-
static_assert( boost::has_virtual_destructor<T>::value, "The target of dynamic_pointer_cast must have a virtual destructor." );
81+
static_assert( std::has_virtual_destructor<T>::value, "The target of dynamic_pointer_cast must have a virtual destructor." );
8382

8483
T * p = dynamic_cast<T*>( r.get() );
8584
if( p ) r.release();

0 commit comments

Comments
 (0)