Skip to content

Commit

Permalink
Fix MoveInsertable requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
nmellado committed Dec 14, 2023
1 parent c4e5653 commit b24dcdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Ponca/src/SpatialPartitioning/KdTree/kdTreeTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ class KdTreeCustomizableNode
{
// We need an explicit constructor here, see https://stackoverflow.com/a/70428826
constexpr Data() : m_leaf() {}
constexpr Data(Data&&d) = default;
// Needed to satisfy MoveInsertable requirement https://en.cppreference.com/w/cpp/named_req/MoveInsertable
constexpr Data(const Data&d) : m_leaf(d.m_leaf) {}

~Data() {}
LeafType m_leaf;
InnerType m_inner;
Expand Down

0 comments on commit b24dcdf

Please sign in to comment.