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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -