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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -