Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2000-03-06 15:10:44


> Well, if we can get interfaces to match, then we could do something
> like:
>
> #if defined( _LINKED_IMPL_ )
> template<class T> shared_ptr : public linked_ptr<T> {};
> #elif defined ( _COUNTED_IMPL_ )
> template<class T> shared_ptr : public counted_ptr<T> {};
> #else
> // default implementation; something we chose...
> ...
> #endif
>
> This way, with a simple configuration define, you can change your smart
> pointer implementation globally.

As long as we don't need any constructors :-)

    -- Darin


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