Saturday, October 9, 2010

Template Parameters

The following cannot be used as a template parameter:
    local class
    unnamed class
    any class compounded from local or unnamed classes.

References:
  More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions by Herb Sutter. Addison-Wesley, 2002., p. 208.
  [C++98] section 14.3.1/2

No comments:

Post a Comment