We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b4bf3 commit 407e3e2Copy full SHA for 407e3e2
Eigen/src/Core/functors/StlFunctors.h
@@ -83,13 +83,17 @@ struct functor_traits<std::binder1st<T> >
83
{ enum { Cost = functor_traits<T>::Cost, PacketAccess = false }; };
84
#endif
85
86
+#if (__cplusplus < 201703L) && (EIGEN_COMP_MSVC < 1910)
87
+// std::unary_negate is deprecated since c++17 and will be removed in c++20
88
template<typename T>
89
struct functor_traits<std::unary_negate<T> >
90
{ enum { Cost = 1 + functor_traits<T>::Cost, PacketAccess = false }; };
91
92
+// std::binary_negate is deprecated since c++17 and will be removed in c++20
93
94
struct functor_traits<std::binary_negate<T> >
95
96
+#endif
97
98
#ifdef EIGEN_STDEXT_SUPPORT
99
0 commit comments