We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54af406 commit 5a54efdCopy full SHA for 5a54efd
1 file changed
src/catch2/catch_tostring.hpp
@@ -384,7 +384,10 @@ namespace Catch {
384
}
385
#endif // CATCH_CONFIG_ENABLE_PAIR_STRINGMAKER
386
387
-#if defined(CATCH_CONFIG_ENABLE_OPTIONAL_STRINGMAKER) && defined(CATCH_CONFIG_CPP17_OPTIONAL)
+#if defined( CATCH_CONFIG_ENABLE_OPTIONAL_STRINGMAKER ) && \
388
+ defined( CATCH_CONFIG_CPP17_OPTIONAL ) && \
389
+ /* P3168 turned optional into a range, making this ambigous with the range support */ \
390
+ !defined( __cpp_lib_optional_range_support )
391
#include <optional>
392
namespace Catch {
393
template<typename T>
0 commit comments