The template's point of declaration is just before the word template.
When explicitly specializing a template, the decaration of the primary template must be in scope at "the point of declaration" of the explicit declaration.
Template parameters have the scope from their point of declaration to the end of it template; so, you can immediately follow a class T template parameter by a T *p template parameter.
References:
http://publib.boulder.ibm.com/infocenter/comphelp/v7v91/index.jsp?topic=/com.ibm.vacpp7a.doc/language/ref/clrc16name_binding.htm
http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/explicit_specialization.htm
http://www.kuzbass.ru/docs/isocpp/template.html
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment