Fixes for macOS
Building on macOS with the latest nixpkgs master and NixOS/nixpkgs#77147 fails. It seems some `std::experimental` (optional) for instance are not available as `experimental`, but are in `std`. Also `toJSON` is missing for `atomic< unsigned long long >`.
This commit is contained in:
@ -23,6 +23,7 @@ namespace nix {
|
||||
|
||||
template<> void toJSON<std::atomic<long>>(std::ostream & str, const std::atomic<long> & n) { str << n; }
|
||||
template<> void toJSON<std::atomic<unsigned long>>(std::ostream & str, const std::atomic<unsigned long> & n) { str << n; }
|
||||
template<> void toJSON<std::atomic<unsigned long long>>(std::ostream & str, const std::atomic<unsigned long long> & n) { str << n; }
|
||||
template<> void toJSON<double>(std::ostream & str, const double & n) { str << n; }
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user