
"Thorsten Ottosen" <nesotto@cs.auc.dk> writes:
"Thorsten Ottosen" <nesotto@cs.auc.dk> wrote in message news:cuvvd9$smq$1@sea.gmane.org... | "David Abrahams" <dave@boost-consulting.com> wrote in message | news:u1xbgsbhw.fsf@boost-consulting.com... || "Thorsten Ottosen" <nesotto@cs.auc.dk> 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