Commit 00e0e7a3 authored by Lukas Weber's avatar Lukas Weber
Browse files

wrong &

parent 6f9d664e
...@@ -43,9 +43,7 @@ inline int run_mc(int (*starter)(jobinfo job, const mc_factory &, int argc, char ...@@ -43,9 +43,7 @@ inline int run_mc(int (*starter)(jobinfo job, const mc_factory &, int argc, char
// run this function from main() in your code. // run this function from main() in your code.
template<class mc_implementation> template<class mc_implementation>
int run(int argc, char **argv) { int run(int argc, char **argv) {
auto mccreator = [&](const &parser p) -> mc * { auto mccreator = [&](const parser &p) -> mc * { return new mc_implementation{p}; };
return new mc_implementation{p};
};
if(argc > 1 && std::string(argv[1]) == "merge") { if(argc > 1 && std::string(argv[1]) == "merge") {
return run_mc(merge_only, mccreator, argc - 1, argv + 1); return run_mc(merge_only, mccreator, argc - 1, argv + 1);
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
namespace loadl { namespace loadl {
mc::mc(const parser &p) mc::mc(const parser &p) : param{p} {
: param{p} {
therm_ = param.get<int>("thermalization"); therm_ = param.get<int>("thermalization");
} }
......
...@@ -48,9 +48,9 @@ public: ...@@ -48,9 +48,9 @@ public:
bool is_thermalized(); bool is_thermalized();
measurements measure; measurements measure;
mc(const parser& p); mc(const parser &p);
virtual ~mc() = default; virtual ~mc() = default;
}; };
typedef std::function<mc *(const parser&)> mc_factory; typedef std::function<mc *(const parser &)> mc_factory;
} }
Markdown is supported
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