From 845d95aaac27ee917b26bad5dd500cea6b72a0b4 Mon Sep 17 00:00:00 2001 From: Peter Rekdal Khan-Sunde Date: Mon, 8 Jun 2026 17:25:30 +0200 Subject: [PATCH] core: fix GpuMatND move assignment --- modules/core/include/opencv2/core/cuda.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/core/include/opencv2/core/cuda.hpp b/modules/core/include/opencv2/core/cuda.hpp index acb1730bd9..15f0416971 100644 --- a/modules/core/include/opencv2/core/cuda.hpp +++ b/modules/core/include/opencv2/core/cuda.hpp @@ -500,16 +500,8 @@ public: GpuMatND(const GpuMatND&) = default; GpuMatND& operator=(const GpuMatND&) = default; -#if defined(__GNUC__) && __GNUC__ < 5 - // error: function '...' defaulted on its first declaration with an exception-specification - // that differs from the implicit declaration '...' - GpuMatND(GpuMatND&&) = default; GpuMatND& operator=(GpuMatND&&) = default; -#else - GpuMatND(GpuMatND&&) noexcept = default; - GpuMatND& operator=(GpuMatND&&) noexcept = default; -#endif void upload(InputArray src); void upload(InputArray src, Stream& stream);