2 ms·
Using lamdba's requires grappling with entirely new syntax compared to anything else in C++ (or C). Using various bind equivalents just requires you to know wh
by PaulDavisThe1st 7y ago
Using lamdba's requires grappling with entirely new syntax compared to anything else in C++ (or C).
Using various bind equivalents just requires you to know what you're doing:
boost::function<int(int)> cbk = boost::bind (&SomeObject::some_method, instance_of_some_object);
...
cbk (22); // invoke callback
In addition, the author's complaints about nobody using ptr-to-method is absurd. Even in 2010, anyone using libsigc++ or its (few) equivalents was using them, which meant that any GUI app written using GTKmm was full of them.
What's not to love?