Hello everyone))
I have an API (which I cant change) which requires a callback function with no arguments and void return type.
I have function (method) with no arguments and bool return type.
I wonder if there is a way to convert bool() to void() using std::bind or any other mechanism but without creating a wrapper method, so that API can use it?
I wonder if there is a way to convert bool() to void() using std::bind or any other mechanism but without creating a wrapper method, so that API can use it?