diff options
Diffstat (limited to 'graphics/asymptote/memory.h')
-rw-r--r-- | graphics/asymptote/memory.h | 6 |
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 */ |