On 3/14/22 11:24,
blais...@gmail.com wrote:
> *Users/blaisb/work/candi/trilinos-release-12-18-1/include/Tpetra_Import_def.hpp:1171:24:
> **error: **no member named 'bind1st' in namespace 'std'; did you mean
> 'boost::container::bind1st'?*
>
> std::bind1st (std::equal_to<int> (), -1));
>
> * ^~~~~*
>
For reference, std::bind1st() is a function that was deprecated with C++11 and
removed with C++17. So if you have a compiler that defaults to C++17, then the
function will no longer exist -- you might want to check what compiler you are
using, and if you can pass -std=c++14 as a flag to "downgrade" it to C++14.
I looked around a little bit, and others have run into similar errors. See
here, for example:
https://github.com/dealii/dealii/issues/6125
On second read, this is actually one of our own github issues :-) But I also
looked into the current Trilinos sources and the file no longer contains the
call to bind1st:
https://github.com/trilinos/Trilinos/blob/master/packages/tpetra/core/src/Tpetra_Import_def.hpp#L1178-L1180
So you might be best served with just using a newer version of Trilinos.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/