Callbacks are C-style and this gives some linking problems with the stub functions...
In particular, stub objects have to be manually created and this might make the code more complex and prone to errors.
Lambda functions can be used (from CCS 10, they do not crash the debugger anymore)