diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-10-26 16:58:58 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-10-26 17:01:20 +0100 |
commit | 9d5e9ef0da89fe4fd02d7053ee28d79df3245325 (patch) | |
tree | 2cd78cf64f40b2f110eadcd85fc5b27b0e7352ff /src/libfetchers | |
parent | dc7d1322efbaa176bff38b1ad15eab6e11c83340 (diff) |
Move Explicit
Diffstat (limited to 'src/libfetchers')
-rw-r--r-- | src/libfetchers/attrs.hh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libfetchers/attrs.hh b/src/libfetchers/attrs.hh index 4b4630c80..56bcdcfc8 100644 --- a/src/libfetchers/attrs.hh +++ b/src/libfetchers/attrs.hh @@ -8,18 +8,6 @@ namespace nix::fetchers { -/* Wrap bools to prevent string literals (i.e. 'char *') from being - cast to a bool in Attr. */ -template<typename T> -struct Explicit { - T t; - - bool operator ==(const Explicit<T> & other) const - { - return t == other.t; - } -}; - typedef std::variant<std::string, uint64_t, Explicit<bool>> Attr; typedef std::map<std::string, Attr> Attrs; |