diff options
| author | Jozef Grajciar | 2019-05-20 21:13:05 +0200 |
|---|---|---|
| committer | Jozef Grajciar | 2019-05-20 21:13:05 +0200 |
| commit | d13e0945983e296388bb0f8293454206fdfd13b6 (patch) | |
| tree | 4e2cd0565c111e921f95cd41e4514d1d43a43931 /include | |
| parent | d30f1dda020c8bbe09937b78561e8e0d26fbe08d (diff) | |
| download | catch3-d13e0945983e296388bb0f8293454206fdfd13b6.tar.gz | |
Remove unique type check
Closes #1628
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_test_registry.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/internal/catch_test_registry.h b/include/internal/catch_test_registry.h index 0e7b53de..feae962d 100644 --- a/include/internal/catch_test_registry.h +++ b/include/internal/catch_test_registry.h @@ -120,7 +120,6 @@ struct AutoReg : NonCopyable { struct TestName{\ template<typename...Ts> \ TestName(Ts...names){\ - CATCH_INTERNAL_CHECK_UNIQUE_TYPES(CATCH_REC_LIST(INTERNAL_CATCH_REMOVE_PARENS, __VA_ARGS__)) \ using expander = int[];\ (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFunc<Types> ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ names, Tags } ), 0)... };/* NOLINT */ \ }\ @@ -131,12 +130,6 @@ struct AutoReg : NonCopyable { template<typename TestType> \ static void TestFunc() -#if defined(CATCH_CPP17_OR_GREATER) -#define CATCH_INTERNAL_CHECK_UNIQUE_TYPES(...) static_assert(Catch::is_unique<__VA_ARGS__>,"Duplicate type detected in declaration of template test case"); -#else -#define CATCH_INTERNAL_CHECK_UNIQUE_TYPES(...) static_assert(Catch::is_unique<__VA_ARGS__>::value,"Duplicate type detected in declaration of template test case"); -#endif - #ifndef CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR #define INTERNAL_CATCH_TEMPLATE_TEST_CASE(Name, Tags, ...) \ INTERNAL_CATCH_TEMPLATE_TEST_CASE_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, __VA_ARGS__ ) @@ -158,7 +151,6 @@ struct AutoReg : NonCopyable { template<typename... Types> \ struct TestName { \ TestName() { \ - CATCH_INTERNAL_CHECK_UNIQUE_TYPES(Types...) \ int index = 0; \ using expander = int[]; \ constexpr char const* tmpl_types[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, INTERNAL_CATCH_REMOVE_PARENS(TmplTypes))};\ @@ -197,7 +189,6 @@ struct AutoReg : NonCopyable { struct TestNameClass{\ template<typename...Ts> \ TestNameClass(Ts...names){\ - CATCH_INTERNAL_CHECK_UNIQUE_TYPES(CATCH_REC_LIST(INTERNAL_CATCH_REMOVE_PARENS, __VA_ARGS__)) \ using expander = int[];\ (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestName<Types>::test ), CATCH_INTERNAL_LINEINFO, #ClassName, Catch::NameAndTags{ names, Tags } ), 0)... };/* NOLINT */ \ }\ @@ -226,7 +217,6 @@ struct AutoReg : NonCopyable { template<typename...Types>\ struct TestNameClass{\ TestNameClass(){\ - CATCH_INTERNAL_CHECK_UNIQUE_TYPES(Types...)\ int index = 0;\ using expander = int[];\ constexpr char const* tmpl_types[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, INTERNAL_CATCH_REMOVE_PARENS(TmplTypes))};\ |