From b24dcdff3a93047857b0ec7d9444de45982effc5 Mon Sep 17 00:00:00 2001 From: Nicolas Mellado Date: Thu, 14 Dec 2023 21:11:00 +0100 Subject: [PATCH] Fix MoveInsertable requirement --- Ponca/src/SpatialPartitioning/KdTree/kdTreeTraits.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ponca/src/SpatialPartitioning/KdTree/kdTreeTraits.h b/Ponca/src/SpatialPartitioning/KdTree/kdTreeTraits.h index adb0d81b..f1ced56b 100644 --- a/Ponca/src/SpatialPartitioning/KdTree/kdTreeTraits.h +++ b/Ponca/src/SpatialPartitioning/KdTree/kdTreeTraits.h @@ -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;