mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 22:17:02 +07:00
fix switch warnings
This commit is contained in:
@@ -114,6 +114,8 @@ namespace meta_hpp::detail
|
||||
return std::is_convertible_v<noncopyable&&, copy_cvref_t<To, noncopyable>>;
|
||||
case ref_types::const_rvalue:
|
||||
return std::is_convertible_v<const noncopyable&&, copy_cvref_t<To, noncopyable>>;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -133,6 +135,8 @@ namespace meta_hpp::detail
|
||||
return std::is_constructible_v<To, to_raw_type&&> && can_cast_to<to_raw_type&&>();
|
||||
case ref_types::const_rvalue:
|
||||
return std::is_constructible_v<To, const to_raw_type&&> && can_cast_to<const to_raw_type&&>();
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -155,6 +155,8 @@ namespace meta_hpp::detail
|
||||
return std::is_invocable_v<inst_method, inst_class&&>;
|
||||
case ref_types::const_rvalue:
|
||||
return std::is_invocable_v<inst_method, const inst_class&&>;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user