mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 14:09:02 +07:00
remove interface warning tuning
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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() ) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user