C++ Tips: Gotcha

Table of Contents

Default parameters can be counter-intiutive
Never redefine an inherited default parameter value
Danger in using forward declarations for classes
Dangerous references!
Illegal initialization of virtual bases
Sizeof and references
Sizeof and addressof references
Operator overloading and argument matching
Amusing infinite loop bug
No type-safety based upon function return types
No type-safety based upon externals
Are object addresses unique identifiers?
Follow up to: Are object addresses unique identifiers?
Ambiguity in declaration vs expression?
cheating on array bounds

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.