|
Boost : |
From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-07-29 06:52:22
"Gennadiy Rozental" <rogeeff_at_[hidden]> wrote in message
news:ai2h2t$gsv$1_at_main.gmane.org...
> > > typedef counted<YourFancyClass> YourFancyClassEx;
> > > shared_ptr<YourFancyClassEx> = new YourFancyClassEx;
>
> > Well:
> > - counted<YourFancyClass> will have to rewrite every constructors of
> > YourFancyClass. Will begin to be problematic for QListViewItem for
> example:
> > many long constructors.
> It's not a problem at all. struct counted as I mentioned will have
templated
> forwarding constructors (using BPPL you could achieve as much arguments as
> you need).
Even if your class' constructor has an infinite number of parameters? (int,
int, int, int, int, int, int, int, int, int, int, ...)? IMO my classes are
easier & will always work in those situations; this is my point. But you
look convinced...
Philippe A. Bouchard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk