1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Alias gc_allocator

This commit is contained in:
Eelco Dolstra 2024-09-19 20:45:13 +02:00
parent b9f78abb7f
commit 31d408c351
2 changed files with 3 additions and 4 deletions

View file

@ -631,11 +631,7 @@ struct CompareValues
}; };
#if HAVE_BOEHMGC
typedef std::list<Value *, gc_allocator<Value *>> ValueList; typedef std::list<Value *, gc_allocator<Value *>> ValueList;
#else
typedef std::list<Value *> ValueList;
#endif
static Bindings::const_iterator getAttr( static Bindings::const_iterator getAttr(

View file

@ -15,6 +15,9 @@
#else #else
template<typename T> template<typename T>
using traceable_allocator = std::allocator<T>; using traceable_allocator = std::allocator<T>;
template<typename T>
using gc_allocator = std::allocator<T>;
#endif #endif
#include <nlohmann/json_fwd.hpp> #include <nlohmann/json_fwd.hpp>