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 4f9a27b commit 78c794dCopy full SHA for 78c794d
include/tinyopt/formatters.h
@@ -23,7 +23,7 @@
23
24
#include <tinyopt/traits.h>
25
26
-#if __cplusplus >= 202002L
+#if (__cplusplus >= 202002L) && __has_include(<format>)
27
28
template <typename T>
29
struct TINYOPT_FORMAT_NS::formatter<
include/tinyopt/log.h
@@ -27,7 +27,7 @@
#define TINYOPT_LOG(...) fmt::print(__VA_ARGS__);
#define TINYOPT_FORMAT_NS fmt
30
-#elif __cplusplus >= 202002L
+#elif (__cplusplus >= 202002L) && __has_include(<format>)
31
32
#include <format>
33
0 commit comments