From: David Abrahams (dave_at_[hidden])
Date: 2002-07-26 13:48:21
----- Original Message -----
From: "David Abrahams" <dave_at_[hidden]>
> From: "Beman Dawes" <bdawes_at_[hidden]>
> > Another thing that still confuses me is why you need to specify Value,
> > can let Reference, Pointer, and Distance default.
> It's all spelled out in the table. The default value_type is
> iterator_traits<slist_node*>::value_type == slist_node, not slist_data.
To further clarify, as the table says, the defaults for Reference, Pointer,
and Distance are not taken from the Base type, but from the Value type.
Once we specify that the Value type is slist_data, we get slist_data& and
slist_data* for free.
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk