Sujet : Re: We have a new standard!
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.c++Date : 08. Jan 2025, 22:31:03
Autres entêtes
Organisation : None to speak of
Message-ID : <87plkxq9go.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Gnus/5.13 (Gnus v5.13)
Chris Ahlstrom <
OFeem1987@teleworm.us> writes:
[...]
Stroustrup in section 23.2 of his 4th edition C++ book notes that
these two are equivalent:
>
template<typename X>
template<class X>
>
but that for typename X, X need not be a class.
X need not be a class in either case.
"""
You may prefer the shorter and equivalent form template<class C>. In
either case, C is a type name; it need not be the name of a class.
"""
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */