Change return type with std::bind

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?

Thanks in advance))
Last edited on
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?

No.
Topic archived. No new replies allowed.