We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ac28d commit aa1a9efCopy full SHA for aa1a9ef
include/boost/smart_ptr/shared_ptr.hpp
@@ -195,9 +195,7 @@ inline void sp_enable_shared_from_this( ... )
195
196
template< class Y, class T > inline void sp_assert_convertible() BOOST_SP_NOEXCEPT
197
{
198
- // static_assert( sp_convertible< Y, T >::value );
199
- typedef char tmp[ sp_convertible< Y, T >::value? 1: -1 ];
200
- (void)sizeof( tmp );
+ static_assert( sp_convertible< Y, T >::value, "incompatible pointer type" );
201
}
202
203
// pointer constructor helper
0 commit comments