Skip to content

Compilation error with C++17 standard #25313

@david-alvarez-rosa

Description

@david-alvarez-rosa

System Information

Standard Linux machine.

Detailed description

While compiling with C++17 standard the build is failing due to

P2ROpenCV/OpenCV/3rdparty/openexr/Imath/ImathVec.h:770:37: error: ISO C++1z does not allow dynamic exception specifications
Vec3<short>::normalizedExc () const throw (Iex::MathExc); 

Isn't OpenCV supposed to be compatible with latest C++ ISO standards? If not, is there any extension bridge making it compatible?

Steps to reproduce

Build with C++17 standard enabled

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions