11/*
2- * Catch v2.2.0
3- * Generated: 2018-03-07 10:56:32.217228
2+ * Catch v2.2.1
3+ * Generated: 2018-03-11 12:01:31.654719
44 * ----------------------------------------------------------
55 * This file has been merged from multiple headers. Please don't edit it directly
66 * Copyright (c) 2018 Two Blue Cubes Ltd. All rights reserved.
1515
1616#define CATCH_VERSION_MAJOR 2
1717#define CATCH_VERSION_MINOR 2
18- #define CATCH_VERSION_PATCH 0
18+ #define CATCH_VERSION_PATCH 1
1919
2020#ifdef __clang__
2121# pragma clang system_header
@@ -5134,7 +5134,7 @@ namespace Catch {
51345134//
51355135// See https://github.com/philsquared/Clara for more details
51365136
5137- // Clara v1.1.3
5137+ // Clara v1.1.4
51385138
51395139
51405140#ifndef CATCH_CLARA_CONFIG_CONSOLE_WIDTH
@@ -5148,6 +5148,7 @@ namespace Catch {
51485148#ifndef CLARA_CONFIG_OPTIONAL_TYPE
51495149#ifdef __has_include
51505150#if __has_include(<optional>) && __cplusplus >= 201703L
5151+ #include < optional>
51515152#define CLARA_CONFIG_OPTIONAL_TYPE std::optional
51525153#endif
51535154#endif
@@ -5784,11 +5785,11 @@ namespace detail {
57845785 }
57855786#ifdef CLARA_CONFIG_OPTIONAL_TYPE
57865787 template <typename T>
5787- inline auto convertInto ( std::string const &source, std::optional <T>& target ) -> ParserResult {
5788+ inline auto convertInto ( std::string const &source, CLARA_CONFIG_OPTIONAL_TYPE <T>& target ) -> ParserResult {
57885789 T temp;
57895790 auto result = convertInto ( source, temp );
57905791 if ( result )
5791- target = temp;
5792+ target = std::move ( temp) ;
57925793 return result;
57935794 }
57945795#endif // CLARA_CONFIG_OPTIONAL_TYPE
@@ -9237,7 +9238,7 @@ namespace Catch {
92379238 // Note that on unices only the lower 8 bits are usually used, clamping
92389239 // the return value to 255 prevents false negative when some multiple
92399240 // of 256 tests has failed
9240- return (std::min)( { MaxExitCode, totals.error , static_cast <int >( totals.assertions .failed ) } );
9241+ return (std::min) ( MaxExitCode, (std::max) ( totals.error , static_cast <int >(totals.assertions .failed )) );
92419242 }
92429243 catch ( std::exception& ex ) {
92439244 Catch::cerr () << ex.what () << std::endl;
@@ -10806,7 +10807,7 @@ namespace Catch {
1080610807 }
1080710808
1080810809 Version const & libraryVersion () {
10809- static Version version ( 2 , 2 , 0 , " " , 0 );
10810+ static Version version ( 2 , 2 , 1 , " " , 0 );
1081010811 return version;
1081110812 }
1081210813
0 commit comments