From ecdf859b6ce481abfd530425dcf6f0f764bd0001 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 28 Dec 2021 03:01:00 +0000 Subject: CTAN sync 202112280300 --- graphics/asymptote/memory.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics/asymptote/memory.h') diff --git a/graphics/asymptote/memory.h b/graphics/asymptote/memory.h index a201f5bd4f..8e878ef712 100644 --- a/graphics/asymptote/memory.h +++ b/graphics/asymptote/memory.h @@ -187,6 +187,7 @@ typedef std::basic_ostringstream, typedef std::basic_stringbuf, gc_allocator > stringbuf; inline void compact(int x) {GC_set_dont_expand(x);} +inline std::string stdString(string s) {return std::string(s.c_str());} #else inline void compact(int x) {} typedef std::string string; @@ -194,6 +195,7 @@ typedef std::stringstream stringstream; typedef std::istringstream istringstream; typedef std::ostringstream ostringstream; typedef std::stringbuf stringbuf; +inline std::string stdString(string s) {return s;} #endif // USEGC } // namespace mem -- cgit v1.2.3