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
> Philippe A. Bouchard

Boost list run by bdawes at, gregod at, cpdaniel at, john at