From 308a5bb4348f5d55c0fd49bbb654c5e638bfce0d Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Mon, 20 May 2024 13:41:09 +0200 Subject: [PATCH] Add missing include std::copy_n is defined in , which is not explicitly included and therefore causes compilation errors with the recent GCC 14.1 and/or CUDA 12.4.1. Change-Id: I9fcab48770ccfc5ec195dca5a190ceaad9debe81 --- internal/ceres/cuda_streamed_buffer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/ceres/cuda_streamed_buffer.h b/internal/ceres/cuda_streamed_buffer.h index 8761ef432..37bcf4ac5 100644 --- a/internal/ceres/cuda_streamed_buffer.h +++ b/internal/ceres/cuda_streamed_buffer.h @@ -34,6 +34,9 @@ #include "ceres/internal/config.h" #ifndef CERES_NO_CUDA + +#include + #include "ceres/cuda_buffer.h" namespace ceres::internal {