fix switch warnings

This commit is contained in:
BlackMATov
2022-01-07 19:25:22 +07:00
parent c29e230845
commit e06fdec7bb
2 changed files with 6 additions and 0 deletions

View File

@@ -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;
}
};

View File

@@ -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;
}
};