Boost logo

Boost :

From: Itay (itay_maman_at_[hidden])
Date: 2002-05-04 11:53:14


"Sven Van Echelpoel" <sven.vanechelpoel.sv_at_[hidden]> wrote in
message news:3CCD5ABD.6F4E1BEE_at_belgium.agfa.com...
[snip]
>
>... But since the storage policy is the
> last template parameter, I'd have to specify all other policies, even
> though I agree with the supplied defaults.
>
> So of course you can use Loki::SmartPtr for all types of resources, it
> is in general impractical for anything that isn't allocated from the
> free store.
>
> Svenne
>

It seems as if a custom made type-generator
(http://www.boost.org/more/generic_programming.html#type_generator), can
save you from typing these default policies yourself.

-Itay


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