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
Version of Clara with (std::max)
- Commit
ba6845a865c6d198557dede3f556214bf926942f- Author
- Phil Nash ·
- Parents
2eb93f47f752
Changes
include/external/clara.hpp | 2 +- third_party/clara.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/external/clara.hpp b/include/external/clara.hpp index 668d9e48..3f2d13bf 100644 --- a/include/external/clara.hpp +++ b/include/external/clara.hpp @@ -1103,7 +1103,7 @@ namespace detail { size_t consoleWidth = CATCH_CLARA_CONFIG_CONSOLE_WIDTH; size_t optWidth = 0; for( auto const &cols : rows ) - optWidth = std::max(optWidth, cols.left.size() + 2); + optWidth = (std::max)(optWidth, cols.left.size() + 2); for( auto const &cols : rows ) { auto row = diff --git a/third_party/clara.hpp b/third_party/clara.hpp index 5778c562..83c4c514 100644 --- a/third_party/clara.hpp +++ b/third_party/clara.hpp @@ -1103,7 +1103,7 @@ namespace detail { size_t consoleWidth = CLARA_CONFIG_CONSOLE_WIDTH; size_t optWidth = 0; for( auto const &cols : rows ) - optWidth = std::max(optWidth, cols.left.size() + 2); + optWidth = (std::max)(optWidth, cols.left.size() + 2); for( auto const &cols : rows ) { auto row =