Commit f34ea5f1 authored by Quentin Khan's avatar Quentin Khan
Browse files

PerfTest/Descriptors: adapt used contructors to 1689d3f8

parent 62621b53
......@@ -120,7 +120,6 @@ struct algo_descriptor {
*/
template<typename FReal>
struct kernel_descriptor<FReal, 0> {
enum : bool {disabled = true};
/// Kernel lookup name
constexpr static const char* name = "lagrange";
/// Interpolation order
......@@ -407,7 +406,7 @@ template<typename FReal> struct algo_descriptor<FReal, 0> {
template<typename tree_t, typename kernel_t>
std::unique_ptr<algo_t<tree_t, kernel_t> >
build(const FPerfTestParams&, tree_t& tree, kernel_t& kernel) {
return std::make_unique<algo_t<tree_t, kernel_t> >(tree, kernel);
return std::make_unique<algo_t<tree_t, kernel_t> >(&tree, &kernel);
}
};
};
......@@ -432,7 +431,7 @@ template<typename FReal> struct algo_descriptor<FReal, 1> {
template<typename tree_t, typename kernel_t>
std::unique_ptr<algo_t<tree_t, kernel_t> >
build(const FPerfTestParams&, tree_t& tree, kernel_t& kernel) {
return std::make_unique<algo_t<tree_t, kernel_t> >(tree, kernel);
return std::make_unique<algo_t<tree_t, kernel_t> >(&tree, &kernel);
}
};
};
......@@ -600,7 +599,7 @@ template<typename FReal> struct algo_descriptor<FReal, 7> {
template<typename tree_t, typename kernel_t>
std::unique_ptr<algo_t<tree_t, kernel_t> >
build(const FPerfTestParams&, tree_t& tree, kernel_t& kernel) {
return std::make_unique<algo_t<tree_t, kernel_t> >(tree, kernel);
return std::make_unique<algo_t<tree_t, kernel_t> >(&tree, &kernel);
}
};
};
......
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