MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

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

FNode: simplify insert overload

parent c5b76fab
......@@ -510,15 +510,17 @@ public:
*/
template<typename... Args>
void insert(const position_t& position, Args&&... args) {
if(! is_leaf()) {
std::size_t child_index = box_t::space_filling_curve_t::index(position, getBox().center());
getChild(child_index)->insert(position, std::forward<Args>(args)...);
} else {
getParticleContainer()->push(particle_t(position, std::forward<Args>(args)...));
if(getParticleContainer()->size() > getTree().leaf_max_particle_count()) {
split();
}
}
this->insert(particle_t(position, std::forward<Args>(args)...));
// if(! is_leaf()) {
// std::size_t child_index = box_t::space_filling_curve_t::index(position, getBox().center());
// getChild(child_index)->insert(position, std::forward<Args>(args)...);
// } else {
// getParticleContainer()->push(particle_t(position, std::forward<Args>(args)...));
// if(getParticleContainer()->size() > getTree().leaf_max_particle_count()) {
// split();
// }
// }
}
......
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