C++17 ?
Hi,
I am trying to switch to C++17, to build OTB along with a project that required it.
From what I saw, setting the set(CMAKE_CXX_STANDARD 17)
in CMakeLists.txt enables to compile the whole library, at least on Ubuntu:22.04, and my project's functional tests all pass (I don't use all OTB applications though!). So that is great news.
But when I try to enable BUILD_TESTING=ON
, I got a lot on compilation errors that I dont well understand.
I tried to solve a few of them but unfortunately I am stuck with some error: invalid use of 'void'
errors. Here is my working copy.
Moving from C++14 to C++17 doesn't look so complicated, since the library can be compiled (without tests). Any plans to switch to C++17? (There was !799 but it's old)