December 1995
Intermediate to advanced
336 pages
8h 22m
English
† A second, unrelated use of dynamic_cast is to find the beginning of the memory occupied by an object. We explore that capability in Item 27.
† Alas, it is not uncommon for compilers to fail to enforce this restriction. Before you write programs that rely on it, test your compilers to make sure they behave correctly. If you've ever wondered if it makes sense to have functions return const objects, now you know: sometimes it does, and postfix increment and decrement are examples.
† A complete implementation of an almost-standard auto_ptr appears on pages 291-294.
† Well, almost always. If the exception is not caught, the program will terminate. In that case, there is no guarantee that local objects (such ...
Read now
Unlock full access