Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-08-19 19:04:17


----- Original Message -----
From: "Karl Nelson" <kenelson_at_[hidden]>

> Using create<A>(s,1) failed. Result I ended up with 1024 templates
> to do just that. (9 arguments.) It was so slow that it wasn't worth
> it! Thus all my users have to type manage(new Gtk::Button("hello"))
> if they want a managed widget.
>
>
> You can just use "const T&" and accept that your arguments do
> not select properly to the class they are. This may be acceptable
> for the format command, but for a general proxy of functions C++
> fails badly. (like my new function).

It's even worse than that if you remember the possibility of volatile ;(

-Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk