diff options
author | Qyriad <qyriad@qyriad.me> | 2024-07-15 16:18:36 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-07-20 20:20:01 +0000 |
commit | a3361557e3f4a53b90ca5067e68ba9788df20928 (patch) | |
tree | 60899a6f30348b8b919c289e06b59fa644003b9d /src/libexpr/eval.hh | |
parent | 0109368c3faf5516aeddde45e8dc3c33e7163838 (diff) |
libexpr: refactor gc-agnostic helpers into one place
Change-Id: Icc4b367e4f670d47256f62a3a002cd248a5c2d3b
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index ed51f8d1d..e54eede40 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -3,6 +3,7 @@ #include "attr-set.hh" #include "eval-error.hh" +#include "gc-alloc.hh" #include "types.hh" #include "value.hh" #include "nixexpr.hh" @@ -37,22 +38,6 @@ namespace eval_cache { class EvalCache; } -/** Alias for std::map which uses boehmgc's allocator conditional on us actually - * using boehmgc in this build. - */ -#if HAVE_BOEHMGC - template<typename KeyT, typename ValueT> - using GcMap = std::map< - KeyT, - ValueT, - std::less<KeyT>, - traceable_allocator<std::pair<KeyT const, ValueT>> - >; -#else - using GcMap = std::map<KeyT, ValueT> -#endif - - /** * Function that implements a primop. */ |