From fdcddfa2c842420e2d174857175377ca79542b39 Mon Sep 17 00:00:00 2001 From: Gaoyang Zhang Date: Tue, 20 Dec 2022 16:45:49 +0800 Subject: [PATCH] add missing header to allow building with GCC12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library since GCC12[^1]. As a result, building torch-points-kernels with GCC12 fails with message: cpu/src/neighbors.cpp:317:10: error: ‘unique_ptr’ is not a member of ‘std’ 317 | std::unique_ptr index(new my_kd_tree_t(3, pcd, tree_params)); | ^~~~~~~~~~ cpu/src/neighbors.cpp:317:10: note: ‘std::unique_ptr’ is defined in header ‘’; did you forget to ‘#include ’? This pr adds the missing `` header to `cpu/src/neighbors.cpp` to allow building with GCC12. [^1]: Signed-off-by: Gaoyang Zhang --- cpu/src/neighbors.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu/src/neighbors.cpp b/cpu/src/neighbors.cpp index 3a7556c..77578d7 100644 --- a/cpu/src/neighbors.cpp +++ b/cpu/src/neighbors.cpp @@ -3,6 +3,7 @@ #include "neighbors.h" #include +#include #include template