From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d2f0af5e440b367f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-07 18:10:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: proposal for new assignment operators From: James Rogers References: <3EF9CD5F.6030608@cogeco.ca> <3doRhIgUmUYX@eisner.encompasserve.org> <3F038B77.2F2E41B7@adaworks.com> Message-ID: User-Agent: Xnews/5.04.25 Date: Tue, 08 Jul 2003 01:10:51 GMT NNTP-Posting-Host: 12.86.32.248 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1057626651 12.86.32.248 (Tue, 08 Jul 2003 01:10:51 GMT) NNTP-Posting-Date: Tue, 08 Jul 2003 01:10:51 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:40120 Date: 2003-07-08T01:10:51+00:00 List-Id: Hyman Rosen wrote in news:hG6Oa.14372$Ha.12381@nwrdny02.gnilink.net: > James Rogers wrote: >> In C++ template syntax above, does "typename" apply implicitly to only >> classes and structs, or does it also primitive types such as int, char, >> and float? > > Any type, including primitive ones. > > This is interesting. Not too long ago in comp.lang.c++.moderated I was told floats cannot be used as template parameters. Was I told correctly? I was surprised when I was told that. I have wondered if it is true, and if so, why. Jim Rogers