|
Boost : |
From: Darryl Green (Darryl.Green_at_[hidden])
Date: 2002-11-27 20:24:19
> -----Original Message-----
> From: Boris Schäling [mailto:boris_at_[hidden]]
> Sent: Thursday, 28 November 2002 5:14 AM
[snip]
> > -----Original Message-----
> > From: boost-bounces_at_[hidden]
> > [mailto:boost-bounces_at_[hidden]]On Behalf Of Hamish Mackenzie
> > Sent: Wednesday, November 27, 2002 1:41 PM
[snip]
> > Consider the your socket multiplexor design. We could use templates
> > something like this...
> >
> > template< typename ObserverType = observer >
> > class multiplexor{ ... }
>
> observer is not the problem but the many server, client and stream classes
> are. As the multiplexor has to select on many file descriptors he has to
> notify many different classes that are currently derived from
> communicator.
> I don't know if templates can help here, too?
boost::function probably can?
Regards
Darryl Green
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk