Hi.
Does static casting really gve any overhead, when no real "conversion" is performed?
Consider the following:
I could have used c++ style casts but i don't think it matters. The point is, does this kind of casting really take any time; or is it solely to ensure type safety?Code:int i1 = 1; char *pc = (char*)&i1; int i2 = *(int*)pc;
Thanks!



LinkBack URL
About LinkBacks



