From c4c148fd034379a81293a17a32af7986927a60d4 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 16 Jul 2024 18:34:32 -0400 Subject: [PATCH] Declare some template specializations in the header Not having these causes some issues with the new unit tests. --- src/libstore/globals.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index dfe25f31726..50cdf9ffe9d 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -16,6 +16,11 @@ namespace nix { typedef enum { smEnabled, smRelaxed, smDisabled } SandboxMode; +template<> SandboxMode BaseSetting::parse(const std::string & str) const; +template<> struct BaseSetting::trait; +template<> std::string BaseSetting::to_string() const; +template<> void BaseSetting::convertToArg(Args & args, const std::string & category); + struct MaxBuildJobsSetting : public BaseSetting { MaxBuildJobsSetting(Config * options,