diff options
author | Norbert Preining <norbert@preining.info> | 2024-02-28 03:01:23 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-02-28 03:01:23 +0000 |
commit | 0afdc3e8c2d8e96d0cd0a5f05f1481a4eecc51d2 (patch) | |
tree | 805f2acf8e0115574bc5781d1dfb87fbe2e63ba8 /graphics/asymptote/common.h | |
parent | a64a01e8eaa2c096e7879421f075ebfa2a8bb7f0 (diff) |
CTAN sync 202402280301
Diffstat (limited to 'graphics/asymptote/common.h')
-rw-r--r-- | graphics/asymptote/common.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/graphics/asymptote/common.h b/graphics/asymptote/common.h index 13f8be106e..6ee3d971f0 100644 --- a/graphics/asymptote/common.h +++ b/graphics/asymptote/common.h @@ -17,28 +17,27 @@ #include "config.h" #endif -#ifdef HAVE_LSP #if __cplusplus < 201703L + +#ifdef HAVE_LSP #include <boost/optional.hpp> #include <boost/none.hpp> using boost::optional; #define nullopt boost::none using boost::make_optional; #else -#include <optional> -using std::optional; -using std::nullopt; -using std::make_optional; -#endif - -#else -#if __cplusplus < 201703L #include "optional.hpp" #define boost nonstd using nonstd::optional; using nonstd::nullopt; using nonstd::make_optional; #endif + +#else +#include <optional> +using std::optional; +using std::nullopt; +using std::make_optional; #endif using std::make_pair; |