On Jul 25, 2009, at 12:47 AM, Sebastian Redl wrote: > Daniel Dunbar wrote: >> On Wed, Jul 22, 2009 at 1:25 PM, Fariborz Jahanian<[email protected] >> > wrote: >> >>> + const void *Key = reinterpret_cast<const void *>( >>> + VBase->getType()- >>> >getAsRecordType()); >>> >> >> I don't think this case is necessary? >> > Assuming Daniel meant "cast" here, a general note: conversion to void* > is implicit, and if you have to do it explicitly, use a static_cast.
Yes, it has since been removed. > > Conversion from void* should also use static_cast. Depending on how > you > interpret "pointer to an object", you could even argue that the > standard > doesn't allow reinterpret_cast from/to void*. Thanks for the info. - Fariborz > > > Sebastian _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
