Skip to content

Commit

Permalink
Declare some template specializations in the header
Browse files Browse the repository at this point in the history
Not having these causes some issues with the new unit tests.
  • Loading branch information
Ericson2314 committed Jul 16, 2024
1 parent f23d168 commit c4c148f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libstore/globals.hh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ namespace nix {

typedef enum { smEnabled, smRelaxed, smDisabled } SandboxMode;

template<> SandboxMode BaseSetting<SandboxMode>::parse(const std::string & str) const;
template<> struct BaseSetting<SandboxMode>::trait;
template<> std::string BaseSetting<SandboxMode>::to_string() const;
template<> void BaseSetting<SandboxMode>::convertToArg(Args & args, const std::string & category);

struct MaxBuildJobsSetting : public BaseSetting<unsigned int>
{
MaxBuildJobsSetting(Config * options,
Expand Down

0 comments on commit c4c148f

Please sign in to comment.