catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Add some constexpr in compact reporter impl
- Commit
2c04850f88b03118ffde69f6f8a90a6fda51c130- Author
- Martin Hořeňovský ·
- Parents
c9027375a3e5
Changes
src/catch2/reporters/catch_reporter_compact.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catch2/reporters/catch_reporter_compact.cpp b/src/catch2/reporters/catch_reporter_compact.cpp index a323e1fd..880a6c87 100644 --- a/src/catch2/reporters/catch_reporter_compact.cpp +++ b/src/catch2/reporters/catch_reporter_compact.cpp @@ -19,9 +19,9 @@ namespace { // Colour::LightGrey - Catch::Colour::Code dimColour() { return Catch::Colour::FileName; } + constexpr Catch::Colour::Code dimColour() { return Catch::Colour::FileName; } - Catch::StringRef bothOrAll( std::size_t count ) { + constexpr Catch::StringRef bothOrAll( std::size_t count ) { switch (count) { case 1: return Catch::StringRef{};