Thursday, 22 June 2017

Guarantees on pointer size in C++

In C++, what guarantees are there, if any, for two types T1 and T2 so that



sizeof(T1*) == sizeof(T2*)



will always be true? It's not guaranteed, for example, that char* and int* will be the same size on all systems.

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...