mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-29 20:37:13 +02:00
Remove static_pointer_cast restriction; test dynamic cross cast.
This commit is contained in:
@ -94,8 +94,6 @@ template<class T, class U> std::unique_ptr<T> static_pointer_cast( std::unique_p
|
||||
|
||||
typedef typename std::unique_ptr<T>::element_type E;
|
||||
|
||||
detail::assert_safe_moving_upcast<T, U>();
|
||||
|
||||
return std::unique_ptr<T>( static_cast<E*>( r.release() ) );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user