Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-08-26 14:12:15


I've added some compile-time assertion so that tree_traits<T>::type is
heavier than ptr<T, tree_type> overloads. Commented lines in pointer.cpp
demontrates it.

Philippe A. Bouchard

"Philippe A. Bouchard" <philippeb_at_[hidden]> wrote:
> Hi,
>
> hierarchy_traits<> was renamed to the shorter tree_traits<> and the
> tree_type of ptr<T> can explicitly override the specialized
> tree_traits<T>::type in this version:
> ptr<int> p = new (rc()) int;
> ptr<int, simple_tree> p = new (rc()) int;
>
> IMO it is better this way because you have more control over your
code:
> http://groups.yahoo.com/group/boost/files/ptr/
>
>
>
> 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