std::unary_negate and std::binary_negate have been deprecated in C++17. VS2017 gives the following compiler warnings when compiled in C++17 mode (/std:c++17): 1>c:\users\patrik\vcpkg\installed\x64-windows\include\eigen\src\core\functors\stlfunctors.h(87): warning C4996: 'std::unary_negate<_Fn>': warning STL4008: std::not1(), std::not2(), std::unary_negate, and std::binary_negate are deprecated in C++17. They are superseded by std::not_fn(). You can define _SILENCE_CXX17_NEGATORS_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning. 1>c:\users\patrik\vcpkg\installed\x64-windows\include\eigen\src\core\functors\stlfunctors.h(91): warning C4996: 'std::binary_negate<_Fn>': warning STL4008: std::not1(), std::not2(), std::unary_negate, and std::binary_negate are deprecated in C++17. They are superseded by std::not_fn(). You can define _SILENCE_CXX17_NEGATORS_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning. I think it would be really nice to update this code to make Eigen warnings-free again.
Fixed (hopefully): default: https://bitbucket.org/eigen/eigen/commits/30f98cd7493f/ 3.3: https://bitbucket.org/eigen/eigen/commits/88e9452099d5/
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1532.