Commit d37580b8 authored by ESTERIE Pierre's avatar ESTERIE Pierre
Browse files

add sfinae on constructor for group_tree

parent 9e7d5c40
......@@ -495,7 +495,7 @@ namespace scalfmm::component
fill_leaves_with_particles(tuple_of_indexes, particle_container);
}
template<typename MortonType>
template<typename MortonType, typename = typename std::enable_if_t<std::is_integral_v<MortonType>>>
group_tree(std::size_t tree_height, std::size_t order, box_type const& box,
std::size_t number_of_leaves_per_group, std::size_t number_of_cells_per_group,
std::vector<MortonType> const& vector_of_mortons, int in_top_level = 2)
......@@ -566,7 +566,7 @@ namespace scalfmm::component
particle_container, particles_are_sorted);
}
template<typename MortonType>
template<typename MortonType, typename = typename std::enable_if_t<std::is_integral_v<MortonType>>>
group_tree(std::size_t tree_height, std::size_t order, box_type const& box,
std::size_t number_of_component_per_group, std::vector<MortonType> const& vector_of_mortons,
int in_top_level = 2)
......
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