Skip to content

core(cuda.hpp): fix GpuMatND compilation with GCC < 5 #19466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

alalek
Copy link
Member

@alalek alalek commented Feb 5, 2021

relates #19259

Probably relates: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59526

Failed ARMv7 builder (GCC 4.8.x)

/build/precommit_armv7/opencv/modules/core/include/opencv2/core/cuda.hpp:456:15: error: function 'cv::cuda::GpuMatND& cv::cuda::GpuMatND::operator=(cv::cuda::GpuMatND&&)' defaulted on its first declaration with an exception-specification that differs from the implicit declaration 'cv::cuda::GpuMatND& cv::cuda::GpuMatND::operator=(cv::cuda::GpuMatND&&)'
     GpuMatND& operator=(GpuMatND&&) noexcept = default;
               ^

Failed CentOS 7:

/build/precommit_custom_linux/opencv/modules/core/include/opencv2/core/cuda.hpp:456:15: error: function 'cv::cuda::GpuMatND& cv::cuda::GpuMatND::operator=(cv::cuda::GpuMatND&&)' defaulted on its first declaration with an exception-specification that differs from the implicit declaration 'cv::cuda::GpuMatND& cv::cuda::GpuMatND::operator=(cv::cuda::GpuMatND&&)'
     GpuMatND& operator=(GpuMatND&&) noexcept = default;
               ^

force_builders=ARMv7,Custom
build_image:Custom=centos:7
buildworker:Custom=linux-1,linux-4,linux-6

@alalek
Copy link
Member Author

alalek commented Feb 5, 2021

👍

@opencv-pushbot opencv-pushbot merged commit f46b125 into opencv:master Feb 5, 2021
@alalek alalek mentioned this pull request Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants