diff options
| author | Martin Hořeňovský | 2019-02-23 21:06:16 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-02-23 21:06:20 +0100 |
| commit | 29b3b7ae6b28501165d2b3d992bfc259e532d585 (patch) | |
| tree | 91ec6c0b676820577a2e7d03eadf6f31c0c7bbbb /projects/SelfTest/UsageTests/Compilation.tests.cpp | |
| parent | ef5fd8d42f1f61ee3bd5eb1595f517c34bb2b038 (diff) | |
| download | catch3-29b3b7ae6b28501165d2b3d992bfc259e532d585.tar.gz | |
Namespace our type traits in catch_meta
Previously they could conflict with user-defined type traits that
were in the global namespace.
Fixes #1548
Diffstat (limited to 'projects/SelfTest/UsageTests/Compilation.tests.cpp')
| -rw-r--r-- | projects/SelfTest/UsageTests/Compilation.tests.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/projects/SelfTest/UsageTests/Compilation.tests.cpp b/projects/SelfTest/UsageTests/Compilation.tests.cpp index 325a8142..7f2ad8bc 100644 --- a/projects/SelfTest/UsageTests/Compilation.tests.cpp +++ b/projects/SelfTest/UsageTests/Compilation.tests.cpp @@ -17,6 +17,11 @@ namespace foo { }; } +namespace bar { + template <typename... Ts> + struct TypeList {}; +} + #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wmissing-declarations" #endif @@ -184,6 +189,11 @@ namespace { namespace CompilationTests { STATIC_REQUIRE_FALSE( std::is_void<int>::value ); } + TEST_CASE("#1548", "[compilation]") { + using namespace bar; + REQUIRE(std::is_same<TypeList<int>, TypeList<int>>::value); + } + }} // namespace CompilationTests |