Thursday, November 25, 2010

Simple Statements

The following statement compiles: 5;

A popular typo is to forget the "()" on a function call. The compiler does not complain, but nothing happens instead of the function being called.

Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library by Scott Meyers. Addison-Wesley, 2001.
C++ Templates by David Vandevoorde and Nicolai M. Josuttis. Addison-Wesley, 2003

No comments:

Post a Comment