I’m so sick of the pass-callback-data-as-void*-struct anti-pattern. Boost bind solves it nicely, but is an unacceptable dependency. What’s a lightweight alternative? How would I write it myself as simply as possible?
I’m so sick of the pass-callback-data-as-void*-struct anti-pattern. Boost bind solves it nicely, but is
Share
I’m not familiar with boost:bind, but is it something like this?
Output —