Monday, October 4, 2010

Using sizeof to Find Type Information at Compile-Time

sizeof allows you to find type information at compile time.

Reference: Modern C++ Design by Andrei Alexandrescu. Addison-Wesley, 2001, p. 34.

See the above reference for fancy examples.

No comments:

Post a Comment