diff options
| author | Martin Hořeňovský | 2020-03-28 22:01:17 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-03-29 14:03:12 +0200 |
| commit | f7d7aa9eb2dd612fa976edd658407551129d9e49 (patch) | |
| tree | 2c0277e82ea6057e7e77fb3671c675f5425f6378 /src | |
| parent | ca5af2e85b864ef15e584bc010581491f6be57a7 (diff) | |
| download | catch3-f7d7aa9eb2dd612fa976edd658407551129d9e49.tar.gz | |
Fix and extend tests for composing generic matchers
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/matchers/catch_matchers_templated.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/catch2/matchers/catch_matchers_templated.hpp b/src/catch2/matchers/catch_matchers_templated.hpp index 7e2ac37c..71e3ce1b 100644 --- a/src/catch2/matchers/catch_matchers_templated.hpp +++ b/src/catch2/matchers/catch_matchers_templated.hpp @@ -41,7 +41,7 @@ namespace Matchers { template<std::size_t N> std::array<void const*, N+1> array_cat(void const* lhs, std::array<void const*, N> && rhs) { - std::array<void const*, N+1> arr{lhs}; + std::array<void const*, N + 1> arr{ {lhs} }; std::copy_n(rhs.begin(), N, arr.begin() + 1); return arr; } @@ -129,6 +129,7 @@ namespace Matchers { } std::array<void const*, sizeof...(MatcherTs)> m_matchers; + }; |