|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-02-16 15:44:26
"Thorsten Ottosen" <nesotto_at_[hidden]> writes:
> "Thorsten Ottosen" <nesotto_at_[hidden]> wrote in message
> news:cuvvd9$smq$1_at_sea.gmane.org...
> | "David Abrahams" <dave_at_[hidden]> wrote in message
> | news:u1xbgsbhw.fsf_at_boost-consulting.com...
> || "Thorsten Ottosen" <nesotto_at_[hidden]> writes:
> ||
> |
> || > The trouble in that case would be that my implementation used void*
> || > underneith and hence has special iterators that does a
> || > reinterpret_cast.
> ||
> || Aside: Why reinterpret_cast? Surely static_cast would be a more
> || restrictive and less alarming choice.
> |
> | ah yes, my mistake. I forgot static cast could do the job.
>
> anyway, how would you convert from void*& to T*& with
> a static_cast ?
You can't. But you can't do it portably with reinterpret_cast either.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk