summaryrefslogtreecommitdiff
path: root/graphics/asymptote/common.h
diff options
context:
space:
mode:
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;