remove interface warning tuning

This commit is contained in:
BlackMATov
2022-07-01 22:47:50 +07:00
parent 04dae2799f
commit 83fd973f55
13 changed files with 47 additions and 48 deletions

View File

@@ -135,8 +135,8 @@ namespace enum_hpp::detail
struct ignore_assign final {
Enum value;
constexpr explicit ignore_assign(Enum value) noexcept
: value(value) {}
constexpr explicit ignore_assign(Enum nvalue) noexcept
: value(nvalue) {}
template < typename Other >
// NOLINTNEXTLINE(readability-named-parameter)

View File

@@ -209,9 +209,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;
}
return false;
};
if ( is_a(to_type, from_type) && is_convertible() ) {
@@ -230,9 +229,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;
}
return false;
};
if ( is_a(to_type, from_type) && is_constructible() ) {

View File

@@ -163,9 +163,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;
}
return false;
};
return is_a(to_type, from_type) && is_invocable();

View File

@@ -476,9 +476,9 @@ namespace meta_hpp::detail
metadata_map metadata;
explicit type_data_base(type_id id, type_kind kind)
: id{id}
, kind{kind} {}
explicit type_data_base(type_id nid, type_kind nkind)
: id{nid}
, kind{nkind} {}
};
struct array_type_data final : type_data_base {