Skip to content
Snippets Groups Projects
Commit b00374ed authored by Sam Yates's avatar Sam Yates Committed by Ben Cumming
Browse files

Bugfix: issue #80 (#81)

Bugfix: issue #80 

* Avoid ctor ambiguity by using parentheses for copy ctor invocation with `nlohmann::json` class.
parent 7e845caf
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ public: ...@@ -42,7 +42,7 @@ public:
convergence_test_runner( convergence_test_runner(
const std::string& param_name, const std::string& param_name,
const SamplerInfoSeq& samplers, const SamplerInfoSeq& samplers,
const nlohmann::json meta const nlohmann::json& meta
): ):
param_name_(param_name), param_name_(param_name),
run_validation_(false), run_validation_(false),
...@@ -84,7 +84,7 @@ public: ...@@ -84,7 +84,7 @@ public:
const auto& trace = se.sampler.trace; const auto& trace = se.sampler.trace;
// save trace // save trace
nlohmann::json trace_meta{meta_}; nlohmann::json trace_meta(meta_);
trace_meta[param_name_] = p; trace_meta[param_name_] = p;
g_trace_io.save_trace(label, trace, trace_meta); g_trace_io.save_trace(label, trace, trace_meta);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment