clean-up
This commit is contained in:
parent
70ca094db8
commit
bc183cd334
1 changed files with 10 additions and 14 deletions
|
@ -118,19 +118,6 @@ 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>()};
|
||||
};
|
||||
|
||||
struct StructWithNonConstexprDestructor{
|
||||
~StructWithNonConstexprDestructor(){}
|
||||
int somefield;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
SomeStruct struct_var;
|
||||
Long othervar;
|
||||
SomeStruct* ptr_s = &struct_var;
|
||||
|
@ -923,6 +910,15 @@ TEST_CASE("NAMEOF_SHORT_TYPE_RTTI") {
|
|||
|
||||
#if defined(NAMEOF_MEMBER_SUPPORTED) && NAMEOF_MEMBER_SUPPORTED
|
||||
|
||||
struct StructMemberInitializationUsingNameof {
|
||||
std::string teststringfield = std::string{nameof::nameof_member<&StructMemberInitializationUsingNameof::teststringfield>()};
|
||||
};
|
||||
|
||||
struct StructWithNonConstexprDestructor {
|
||||
~StructWithNonConstexprDestructor() {}
|
||||
int somefield;
|
||||
};
|
||||
|
||||
TEST_CASE("NAMEOF_MEMBER") {
|
||||
REQUIRE(NAMEOF_MEMBER(&SomeStruct::somefield) == "somefield");
|
||||
REQUIRE(NAMEOF_MEMBER(&SomeStruct::SomeMethod1) == "SomeMethod1");
|
||||
|
|
Loading…
Reference in a new issue