|
 |
John VanSickle <evi### [at] hotmail com> wrote:
> Casting back and forth from void* is considered exceptionally unwise in
> C++, but it's considered a great way of writing tighter code in C.
In fact, for example casting method pointers to void* and back is
undefined behavior and in no way guaranteed to work. (And, in fact,
in many compilers method pointers are as large as two regular pointers,
and thus casting to void* would drop information.)
--
- Warp
Post a reply to this message
|
 |