1.6.3 fails to build: use of undeclared identifier 'bind2nd'
yurivict opened this issue · comments
Same with 2021-rc.1-228-g1754257:
bind2nd(multiplies<double>(), norm));
^~~~~~~
boost::container::bind2nd
/usr/local/include/boost/container/detail/algorithm.hpp:81:24: note: 'boost::container::bind2nd' declared here
inline binder2nd<Func> bind2nd(const Func& func, const T& arg)
^
/usr/ports/science/votca/work/votca-2021-rc.1-228-g1754257/csg/src/libcsg/map.cc:97:15: error: use of undeclared identifier 'bind2nd'; did you mean 'boost::container::bind2nd'?
bind2nd(multiplies<double>(), norm));
^~~~~~~
boost::container::bind2nd
/usr/local/include/boost/container/detail/algorithm.hpp:81:24: note: 'boost::container::bind2nd' declared here
inline binder2nd<Func> bind2nd(const Func& func, const T& arg)
^
2 errors generated.
Seems like an internal boost error, @JensWehner any ideas?
Changing the function to boost::container::bind2nd
helps.
I guess std::bind2nd
should work, too.