
It is my understanding that void* to T* convertions should be done
using
static_cast and not reinterpret_cast.
No one knows? No one cares?
I care; it's one of my favorite axen to grind. Yes, avoid reinterpret_cast unless you really want implementation-defined behavior.
Can you expand on that? Casting from void* to T* (or X* to Y*) is precisely when I'd use reinterpret_cast (and, indeed, it's not much use for anything else). Jim ________________________________________________________________________ This e-mail, and any attachment, is confidential. If you have received it in error, do not use or disclose the information in any way, notify me immediately, and please delete it from your system. ________________________________________________________________________