Deutsch   English   Français   Italiano  
<87plkxq9go.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c++
Subject: Re: We have a new standard!
Date: Wed, 08 Jan 2025 13:31:03 -0800
Organization: None to speak of
Lines: 20
Message-ID: <87plkxq9go.fsf@nosuchdomain.example.com>
References: <cone.1735849245.346442.281052.1000@ripper.email-scan.com>
	<vl8m0u$3t4v1$1@dont-email.me>
	<cone.1735909901.753978.294757.1000@ripper.email-scan.com>
	<vl8sfi$3u4fh$1@dont-email.me>
	<cone.1735919451.379621.297354.1000@ripper.email-scan.com>
	<vl9eq7$1n1d$1@dont-email.me>
	<cone.1735956395.711486.303344.1000@ripper.email-scan.com>
	<vlbte2$imdo$1@dont-email.me> <vlg4qr$1hinc$1@dont-email.me>
	<vljasv$27g6v$4@dont-email.me> <vljc9i$27uoh$1@dont-email.me>
	<vlml1v$2u6ja$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 08 Jan 2025 22:31:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="78dde0aa8fcfd62296c6657e38e15b03";
	logging-data="3093577"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/YxkALXXCRQEI1Mf7R3aW3"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:T3jkcnM2DHhRY0LIwsh/bb56Yl8=
	sha1:O/dfRRozoMNK8fp9cBjjhd/NoWI=
Bytes: 2015

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.com
void Void(void) { Void(); } /* The recursive call of the void */