binder1st and binder2nd warnings
Submitted by Andrea Nicastro
Assigned to Nobody
Link to original bugzilla bug (#1276)
Version: 3.2
Description
When compiling using Eigen I get the following warnings
Core/Functors.h:977:28: warning: ‘template<class _Operation> class std::binder1st’ is deprecated [-Wdeprecated-declarations]
struct functor_traits<std::binder1st<T> >
Core/Functors.h:973:28: warning: ‘template<class _Operation> class std::binder2nd’ is deprecated [-Wdeprecated-declarations]
struct functor_traits<std::binder2nd<T> >
I temporarily solved including Eigen in the following way:
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <Eigen/Core>
#pragma GCC diagnostic pop
Edited by Eigen Bugzilla