
12 Nov
2010
12 Nov
'10
6:59 p.m.
On 12 November 2010 18:33, vicente.botet <vicente.botet@wanadoo.fr> wrote:
IIRC C++0x is going to introduce a trait for this purpose, so we'll be able to write something like:
template <typename VoidPtr> struct node { typedef typename convert_pointer<VoidPtr, node> node_ptr; node_ptr next_; };
But we can't do that until the trait is available for current custom pointer types.
Vicente> You are right, we need this trait. BTW, are you referring to pointer_traits when you use convert_pointer, isn't it?
Probably, I was just writing up what I remembered from when I tried to implement this for Boost.Unordered a while back. Daniel