+ cb.set_callback([&, callback, context]{ (*callback)(reinterpret_cast<::MirBuffer*>(this), context); });
The ‘&’ is rather strange there - you only really want to capture /this/ by value.
But that's a stylistic nit.
« Back to merge proposal
+ cb.set_callback([&, callback, context]{ (*callback) (reinterpret_ cast<:: MirBuffer* >(this) , context); });
The ‘&’ is rather strange there - you only really want to capture /this/ by value.
But that's a stylistic nit.