diff options
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 |