little warning fixes

This commit is contained in:
BlackMATov
2023-07-07 03:46:34 +07:00
parent 5af1ad6b22
commit b76de7109f
3 changed files with 10 additions and 2 deletions

View File

@@ -709,10 +709,14 @@ namespace meta_hpp::detail
{
template < typename R, typename... Args >
struct fixed_function<R(Args...)>::vtable_t final {
// NOLINTBEGIN(*-avoid-const-or-ref-data-members)
R (*const call)(const fixed_function& self, Args... args);
void (*const move)(fixed_function& from, fixed_function& to) noexcept;
void (*const destroy)(fixed_function& self);
// NOLINTEND(*-avoid-const-or-ref-data-members)
template < typename T >
static T* buffer_cast(buffer_t& buffer) noexcept {
// NOLINTNEXTLINE(*-reinterpret-cast)
@@ -1670,7 +1674,7 @@ namespace meta_hpp
|| std::is_same_v<T, uvalue>; //
template < typename T >
concept non_uvalue_family = (!uvalue_family<T>);
concept non_uvalue_family = !uvalue_family<T>;
}
}

View File

@@ -76,7 +76,7 @@ namespace meta_hpp
|| std::is_same_v<T, uvalue>; //
template < typename T >
concept non_uvalue_family = (!uvalue_family<T>);
concept non_uvalue_family = !uvalue_family<T>;
}
}

View File

@@ -104,10 +104,14 @@ namespace meta_hpp::detail
{
template < typename R, typename... Args >
struct fixed_function<R(Args...)>::vtable_t final {
// NOLINTBEGIN(*-avoid-const-or-ref-data-members)
R (*const call)(const fixed_function& self, Args... args);
void (*const move)(fixed_function& from, fixed_function& to) noexcept;
void (*const destroy)(fixed_function& self);
// NOLINTEND(*-avoid-const-or-ref-data-members)
template < typename T >
static T* buffer_cast(buffer_t& buffer) noexcept {
// NOLINTNEXTLINE(*-reinterpret-cast)