1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 20:01:15 +02:00

Make nix::eval_cache::int_t more idiomatic

Don’t explicitely give it a constructor, but use aggregate
initialization instead (also prevents having an implicit coertion, which
is probably good here)
This commit is contained in:
Théophane Hufschmitt 2022-05-16 16:36:21 +02:00
parent e53349dd6e
commit 43a2c13672
2 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ struct placeholder_t {};
struct missing_t {};
struct misc_t {};
struct failed_t {};
struct int_t { NixInt x; int_t(NixInt x) : x(x) {}; };
struct int_t { NixInt x; };
typedef uint64_t AttrId;
typedef std::pair<AttrId, Symbol> AttrKey;
typedef std::pair<std::string, NixStringContext> string_t;