fixes after the review
This commit is contained in:
parent
ca8de1ea73
commit
bacbd608e4
2 changed files with 6 additions and 3 deletions
|
@ -979,9 +979,8 @@ union union_type {
|
|||
};
|
||||
|
||||
template <typename T>
|
||||
struct union_type_holder
|
||||
{
|
||||
constexpr static union_type<T> value;
|
||||
struct union_type_holder {
|
||||
constexpr static union_type<T> value;
|
||||
};
|
||||
|
||||
template <auto V>
|
||||
|
|
|
@ -118,6 +118,8 @@ struct TestRtti{
|
|||
struct Derived : Base {};
|
||||
};
|
||||
|
||||
#if defined(NAMEOF_MEMBER_SUPPORTED) && NAMEOF_MEMBER_SUPPORTED
|
||||
|
||||
struct StructMemberInitializationUsingNameof{
|
||||
std::string teststringfield = std::string{nameof::nameof_member<&StructMemberInitializationUsingNameof::teststringfield>()};
|
||||
};
|
||||
|
@ -127,6 +129,8 @@ struct StructWithNonConstexprDestructor{
|
|||
int somefield;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
SomeStruct struct_var;
|
||||
Long othervar;
|
||||
SomeStruct* ptr_s = &struct_var;
|
||||
|
|
Loading…
Reference in a new issue