diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-28 03:01:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-28 03:01:00 +0000 |
commit | ecdf859b6ce481abfd530425dcf6f0f764bd0001 (patch) | |
tree | 13bc161dc046876ac6c92fce5f9f5034ba9aa573 /graphics/asymptote/common.h | |
parent | 790995b7e79697514364450bf9c04f1b8d500838 (diff) |
CTAN sync 202112280300
Diffstat (limited to 'graphics/asymptote/common.h')
-rw-r--r-- | graphics/asymptote/common.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/asymptote/common.h b/graphics/asymptote/common.h index 80dfef8ac3..50f397c7e3 100644 --- a/graphics/asymptote/common.h +++ b/graphics/asymptote/common.h @@ -10,12 +10,27 @@ #undef NDEBUG #include <iostream> +#include <memory> #include <climits> #ifdef HAVE_CONFIG_H #include "config.h" #endif +#ifdef HAVE_LSP +#include <boost/optional.hpp> +#include <boost/none.hpp> +using boost::optional; +using boost::make_optional; +#else +#include "optional.hpp" +#define boost nonstd +using nonstd::optional; +using nonstd::nullopt; +#endif + +using std::make_pair; + #if !defined(FOR_SHARED) && \ ((defined(HAVE_LIBGL) && defined(HAVE_LIBGLUT) && defined(HAVE_LIBGLM)) || \ defined(HAVE_LIBOSMESA)) @@ -88,6 +103,10 @@ using mem::istringstream; using mem::ostringstream; using mem::stringbuf; +using std::shared_ptr; +using std::unique_ptr; +using std::make_shared; + static const struct ws_t {} ws={}; // Portable way of skipping whitespace |