Closed mkrausex closed 9 months ago
The change looks completely reasonable to me.
Although, the fact that it works for your project only means that your project doesn't pass std::unary_negate
Closed by https://github.com/ukoethe/vigra/pull/536
thank you
The file
functortraits.hxx
refers tostd::unary_negate
andstd::binary_negate
, which have been deprecated since C++17, and removed in C++20. Therefore, this file fails to compile under Visual Studio 2019 in C++20 mode, which is the environment the project I'm working on uses.I commented these out (see attached patch), and my project is fine with that change. However, I’m not sure what implications that has on other code, and what a real fix could be.