fixes after the review

This commit is contained in:
kamchatka_volcano 2022-12-07 00:08:56 +03:00
parent ca8de1ea73
commit bacbd608e4
2 changed files with 6 additions and 3 deletions

View file

@ -979,9 +979,8 @@ union union_type {
}; };
template <typename T> template <typename T>
struct union_type_holder struct union_type_holder {
{ constexpr static union_type<T> value;
constexpr static union_type<T> value;
}; };
template <auto V> template <auto V>

View file

@ -118,6 +118,8 @@ struct TestRtti{
struct Derived : Base {}; struct Derived : Base {};
}; };
#if defined(NAMEOF_MEMBER_SUPPORTED) && NAMEOF_MEMBER_SUPPORTED
struct StructMemberInitializationUsingNameof{ struct StructMemberInitializationUsingNameof{
std::string teststringfield = std::string{nameof::nameof_member<&StructMemberInitializationUsingNameof::teststringfield>()}; std::string teststringfield = std::string{nameof::nameof_member<&StructMemberInitializationUsingNameof::teststringfield>()};
}; };
@ -127,6 +129,8 @@ struct StructWithNonConstexprDestructor{
int somefield; int somefield;
}; };
#endif
SomeStruct struct_var; SomeStruct struct_var;
Long othervar; Long othervar;
SomeStruct* ptr_s = &struct_var; SomeStruct* ptr_s = &struct_var;