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>
|
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>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue