Saturday, April 10, 2010

Source Files Ending in Newline

All C++ source files are required by the C++ standard to end with a newline (and not immediately preceded by a backslash).

Reference: Exceptional C++ Style: 40 New Engineering Puzzles, Programming Problems, and Solutions by Herb Sutter, Addison-Wesley, 2005.,p. 284.

No comments:

Post a Comment