Reputation: 23
Function mem_fun1()
have been removed in VC++ 2015. Therefore I change my code to using mem_fun1_t()
from:
mem_fun1(&classA::functA)
To:
mem_fun1_t<bool,classA,classB>(&classA::functA)
With declare of function functA()
:
bool classA::functA(classB x);
Is this correct?
Upvotes: 2
Views: 928
Reputation: 137394
The old member function adaptors are strictly superseded by std::mem_fn
. Use that, not deprecated functions that are removed in C++17 (and will likely be removed from later versions of VS).
As to mem_fun1
, that's never been in the standard. The standard had four mem_fun
overloads to handle const and non-const member function pointers with either 0 or 1 arguments.
Upvotes: 2