mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
bug #1532: disable stl::*_negate in C++17 (they are deprecated)
This commit is contained in:
parent
40b4bf3d32
commit
407e3e2621
@ -83,13 +83,17 @@ struct functor_traits<std::binder1st<T> >
|
|||||||
{ enum { Cost = functor_traits<T>::Cost, PacketAccess = false }; };
|
{ enum { Cost = functor_traits<T>::Cost, PacketAccess = false }; };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (__cplusplus < 201703L) && (EIGEN_COMP_MSVC < 1910)
|
||||||
|
// std::unary_negate is deprecated since c++17 and will be removed in c++20
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct functor_traits<std::unary_negate<T> >
|
struct functor_traits<std::unary_negate<T> >
|
||||||
{ enum { Cost = 1 + functor_traits<T>::Cost, PacketAccess = false }; };
|
{ enum { Cost = 1 + functor_traits<T>::Cost, PacketAccess = false }; };
|
||||||
|
|
||||||
|
// std::binary_negate is deprecated since c++17 and will be removed in c++20
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct functor_traits<std::binary_negate<T> >
|
struct functor_traits<std::binary_negate<T> >
|
||||||
{ enum { Cost = 1 + functor_traits<T>::Cost, PacketAccess = false }; };
|
{ enum { Cost = 1 + functor_traits<T>::Cost, PacketAccess = false }; };
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef EIGEN_STDEXT_SUPPORT
|
#ifdef EIGEN_STDEXT_SUPPORT
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user