Add missing include

std::copy_n is defined in <algorithm>, 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
This commit is contained in:
Sergiu Deitsch
2024-05-20 13:41:09 +02:00
parent 715865101c
commit 308a5bb434
+3
View File
@@ -34,6 +34,9 @@
#include "ceres/internal/config.h"
#ifndef CERES_NO_CUDA
#include <algorithm>
#include "ceres/cuda_buffer.h"
namespace ceres::internal {