diff options
author | keke <librek@protonmail.com> | 2021-06-02 18:09:03 +0800 |
---|---|---|
committer | keke <librek@protonmail.com> | 2021-06-02 18:09:03 +0800 |
commit | 50dc88a56cc13030801bfefc7116828d4115ae70 (patch) | |
tree | d9435d00e32722c89af920419bad6db6439d74c6 /src/libfetchers/attrs.hh | |
parent | 7c3cb8506fb3046cb97e1b98f3b1195d45c500f3 (diff) |
fix error: 'optional' in namespace 'std' does not name a template type
Diffstat (limited to 'src/libfetchers/attrs.hh')
-rw-r--r-- | src/libfetchers/attrs.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libfetchers/attrs.hh b/src/libfetchers/attrs.hh index a2d53a7bf..e41037633 100644 --- a/src/libfetchers/attrs.hh +++ b/src/libfetchers/attrs.hh @@ -6,6 +6,8 @@ #include <nlohmann/json_fwd.hpp> +#include <optional> + namespace nix::fetchers { typedef std::variant<std::string, uint64_t, Explicit<bool>> Attr; |