summaryrefslogtreecommitdiff
path: root/graphics/asymptote/common.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-06-08 03:01:59 +0000
committerNorbert Preining <norbert@preining.info>2023-06-08 03:01:59 +0000
commit538e6d6e7c75b7cca5470604811205f9dbd55c03 (patch)
tree4807afb694acc9e4ecff2d466d5e37788127d6fb /graphics/asymptote/common.h
parent5c99135c06494b236cce7fd76e346851cf8c4408 (diff)
CTAN sync 202306080301
Diffstat (limited to 'graphics/asymptote/common.h')
-rw-r--r--graphics/asymptote/common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/asymptote/common.h b/graphics/asymptote/common.h
index 50f397c7e3..13f8be106e 100644
--- a/graphics/asymptote/common.h
+++ b/graphics/asymptote/common.h
@@ -18,15 +18,27 @@
#endif
#ifdef HAVE_LSP
+#if __cplusplus < 201703L
#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
#endif
using std::make_pair;