From 1f94f0369937c9187b158f53a4a361507a62c5e9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 26 Apr 2017 15:11:12 +0200 Subject: [PATCH] Fix build --- src/hydra-queue-runner/hydra-queue-runner.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 8aacd007..1aa89663 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -17,6 +17,15 @@ using namespace nix; +namespace nix { + +template<> void toJSON>(std::ostream & str, const std::atomic & n) { str << n; } +template<> void toJSON>(std::ostream & str, const std::atomic & n) { str << n; } +template<> void toJSON(std::ostream & str, const double & n) { str << n; } + +} + + struct Config { std::map options;