mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-02 13:43:52 +00:00
Simpler check for optional
This commit is contained in:
parent
189546b82a
commit
6f41cca918
@ -11,7 +11,7 @@
|
|||||||
#ifdef __has_include
|
#ifdef __has_include
|
||||||
|
|
||||||
#if defined(CLI11_CPP17) && __has_include(<optional>) && \
|
#if defined(CLI11_CPP17) && __has_include(<optional>) && \
|
||||||
defined(__cpp_lib_optional) && !defined(CLI11_STD_OPTIONAL)
|
!defined(CLI11_STD_OPTIONAL)
|
||||||
#define CLI11_STD_OPTIONAL 1
|
#define CLI11_STD_OPTIONAL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user