mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Alias gc_allocator
This commit is contained in:
parent
b9f78abb7f
commit
31d408c351
2 changed files with 3 additions and 4 deletions
|
@ -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(
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue