1
0
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:
Henry Fredrick Schreiner 2018-06-13 15:41:31 +02:00 committed by Henry Schreiner
parent 189546b82a
commit 6f41cca918

View File

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