From 97cbe288295bd6a3bcde7030c26f19bf34e8b8b0 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 15 Jun 2015 15:34:05 +0200 Subject: Remove support of std::binder* in C++11 --- Eigen/src/Core/functors/StlFunctors.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Eigen') diff --git a/Eigen/src/Core/functors/StlFunctors.h b/Eigen/src/Core/functors/StlFunctors.h index 863fd451d..0b4e5a29d 100644 --- a/Eigen/src/Core/functors/StlFunctors.h +++ b/Eigen/src/Core/functors/StlFunctors.h @@ -72,6 +72,8 @@ template struct functor_traits > { enum { Cost = 1, PacketAccess = false }; }; +#if(__cplusplus < 201103L) +// std::binder* are deprecated since c++11 and will be removed in c++17 template struct functor_traits > { enum { Cost = functor_traits::Cost, PacketAccess = false }; }; @@ -79,6 +81,7 @@ struct functor_traits > template struct functor_traits > { enum { Cost = functor_traits::Cost, PacketAccess = false }; }; +#endif template struct functor_traits > -- cgit v1.2.3