Skip to content

Commit f46b125

Browse files
committed
Merge pull request opencv#19466 from alalek:hotfix_19259
2 parents 7ea21c4 + e695905 commit f46b125

File tree

1 file changed

+8
-0
lines changed
  • modules/core/include/opencv2/core

1 file changed

+8
-0
lines changed

modules/core/include/opencv2/core/cuda.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,16 @@ class CV_EXPORTS_W GpuMatND
452452
GpuMatND(const GpuMatND&) = default;
453453
GpuMatND& operator=(const GpuMatND&) = default;
454454

455+
#if defined(__GNUC__) && __GNUC__ < 5
456+
// error: function '...' defaulted on its first declaration with an exception-specification
457+
// that differs from the implicit declaration '...'
458+
459+
GpuMatND(GpuMatND&&) = default;
460+
GpuMatND& operator=(GpuMatND&&) = default;
461+
#else
455462
GpuMatND(GpuMatND&&) noexcept = default;
456463
GpuMatND& operator=(GpuMatND&&) noexcept = default;
464+
#endif
457465

458466
void upload(InputArray src);
459467
void upload(InputArray src, Stream& stream);

0 commit comments

Comments
 (0)