Boost logo

Boost Users :

Subject: Re: [Boost-users] boost version of qt signals (including cross-thread event generation)
From: Igor R (boost.lists_at_[hidden])
Date: 2011-09-14 06:04:31

> 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

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at