The following compiles: int (i) = 1; The parentheses do not do anything here.
References:
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
http://www.gotw.ca
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment