|
Boost : |
From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-01-12 21:33:55
> To avoid that you might design a smart pointer which allocated
> objects itself rather than taking in raw pointers from the outside
> world. That would eliminate that particular screw-up, although how
> it would get the correct constructor arguments I haven't a clue.
Simple: use a family of forwarding template constructors (probably you have
to give up on VC6, then).
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk