summaryrefslogtreecommitdiff
path: root/graphics/asymptote/memory.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-02-28 03:01:23 +0000
committerNorbert Preining <norbert@preining.info>2024-02-28 03:01:23 +0000
commit0afdc3e8c2d8e96d0cd0a5f05f1481a4eecc51d2 (patch)
tree805f2acf8e0115574bc5781d1dfb87fbe2e63ba8 /graphics/asymptote/memory.h
parenta64a01e8eaa2c096e7879421f075ebfa2a8bb7f0 (diff)
CTAN sync 202402280301
Diffstat (limited to 'graphics/asymptote/memory.h')
-rw-r--r--graphics/asymptote/memory.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/asymptote/memory.h b/graphics/asymptote/memory.h
index 180260bc9d..5c5d7a41d0 100644
--- a/graphics/asymptote/memory.h
+++ b/graphics/asymptote/memory.h
@@ -134,7 +134,11 @@ GC_CONTAINER(vector);
GC_CONTAINER(deque);
template <typename T, typename Container = vector<T> >
-struct stack : public std::stack<T, Container>, public gc {
+struct stack : public std::stack<T, Container>, public gc {};
+
+template <typename T, typename S >
+struct pair : public std::pair<T, S>, public gc {
+ pair(T t, S s) : std::pair<T,S>(t,s) {}
};
#define PAIR_ALLOC gc_allocator<std::pair<CONST Key,T> > /* space */