Version of Clara with (std::max)

This commit is contained in:
Phil Nash 2017-10-12 16:06:40 +01:00
parent 2eb93f47f7
commit ba6845a865
2 changed files with 2 additions and 2 deletions

View File

@ -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 =

View File

@ -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 =