Now I am a bit frutrated by the hackishnes of the qt preprocessor (moc) that implements the signal/slot magic, as it does not compute with templates and typedefs, making my code unneccesarily verbose. So I was wondering how easy/hard it would be to implement such a thing with boost? I nknow there is signals2, but that does not implement the message passing scheme I want, instead it just savely calls slot directly. In terms of event-loops there is boost asio, right? Is there a sane way to combine these? It would be great as I think this kind of scheme can be used in many places.
It calls slots directly. You definitely can combine this with Asio, but it should be done manually - i.e. "high-level" slot function/functor should just post() a "real" functor to asio::io_service.