1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-10-18 00:16:11 -04: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;
#else
typedef std::list<Value *> ValueList;
#endif
static Bindings::const_iterator getAttr(

View file

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