Tuesday, October 19, 2010

Dependent Name

The two ways that a dependent name will be treated as a type by the compiler are:
   1. Name lookup finds a type.
   2. The keyword 'typename' qualifies the type.

Reference: More Exceptional C++ by Herb Sutter. Addison-Wesley, 2001, p. 33.

No comments:

Post a Comment