C++ ptr_fun not finding void parametered functions -
i tried using std::ptr_fun wrap function, when try wrap function void parameter , bool return type end error:
code:
std::function<bool()> cr = std::not1(std::ptr_fun(&funct1));
function:
bool funct1() { return false; }
the error:
error: no matching function call 'ptr_fun(bool (*)())'
but whenever change parameter int, problem seems go away.
how wrap function void parameter???
not 100% sure, try using void*
parameter
Comments
Post a Comment