mirror of
https://github.com/boostorg/move.git
synced 2025-08-02 21:54:26 +02:00
Fixed is_convertible bug in missing_virtual_destructor
This commit is contained in:
@@ -556,28 +556,21 @@ struct is_unary_function
|
|||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
|
|
||||||
template< class T, class U
|
template< class T, class U
|
||||||
, bool enable = is_convertible< typename remove_cv<U>::type*
|
, bool enable = is_convertible< U*, T*>::value &&
|
||||||
, typename remove_cv<T>::type*>::value &&
|
|
||||||
!is_array<T>::value &&
|
!is_array<T>::value &&
|
||||||
!is_same<typename remove_cv<T>::type, void>::value &&
|
!is_same<typename remove_cv<T>::type, void>::value &&
|
||||||
!is_same<typename remove_cv<U>::type, typename remove_cv<T>::type>::value
|
!is_same<typename remove_cv<U>::type, typename remove_cv<T>::type>::value
|
||||||
>
|
>
|
||||||
struct missing_virtual_destructor_default_delete
|
struct missing_virtual_destructor_default_delete
|
||||||
{
|
{ static const bool value = !has_virtual_destructor<T>::value; };
|
||||||
static const bool value = !has_virtual_destructor<T>::value;
|
|
||||||
};
|
|
||||||
|
|
||||||
template<class T, class U>
|
template<class T, class U>
|
||||||
struct missing_virtual_destructor_default_delete<T, U, false>
|
struct missing_virtual_destructor_default_delete<T, U, false>
|
||||||
{
|
{ static const bool value = false; };
|
||||||
static const bool value = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
template<class Deleter, class U>
|
template<class Deleter, class U>
|
||||||
struct missing_virtual_destructor
|
struct missing_virtual_destructor
|
||||||
{
|
{ static const bool value = false; };
|
||||||
static const bool value = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
template<class T, class U>
|
template<class T, class U>
|
||||||
struct missing_virtual_destructor< ::boost::movelib::default_delete<T>, U >
|
struct missing_virtual_destructor< ::boost::movelib::default_delete<T>, U >
|
||||||
|
Reference in New Issue
Block a user