There was a time when you said
template <typename x, typename y>
instead of
template <class x, class y>
(Was it TC++PL 2nd edition?) The former is still allowed.
It is also used when the context that a variable declaration is in is
ambiguous, such as this: http://publib.boulder.ibm.com/infocenter/
pseries/v5r3/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/
keyword_typename.htm
On Mar 7, 2008, at 5:21 AM, Russ Cox wrote:
PPS: Why is "typename" a G++ reserved word?
[now safely off-topic; sorry]
Because it is a C++ reserved word.
It gets used in contexts (templates, in particular)
where the parser needs extra help deciding that
a name is going to be used as a type.
Russ