🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #36

Re: using a template parameter as a qualifier -- legal or not?

#36
From: Andrew Datars
Date: Wed, 07 Feb 1996 02:16
32 lines
2274 bytes
R Shapiro wrote:
> My first question is, *should* this work, ie is it legal according to the
> more or less official C++ standard? I can't tell from my reading of ARM
> and the relevant portions of the draft standard. What's your take?
> 
> The fact that other compilers support it isn't quite what I'm after, since
> some compilers support things that are definitely not following the
> standard. If this is a bug in CodeWarrior, I'll report it and Metrowerks
> will probably fix it. But I still don't know if it really is a bug or not.
> 
> --
> rs/rshapiro@bbn.com

Well I don't know if it should be legal or not. I actually asked this
question of the net several times in my quest to use it, and I never
received a conclusive answer. The reason I think that it should be legal
is the wide support( from every compiler I have tried that was released in the
last year). Further, whenever it wasn't supported, the compiler
never reacted in a graceful manner, which leads me to believe that those
compilers hadn't considered such a use. As I said, I have crashed compilers
with it.

My suggestion would be to talk to Metrowerks.

Let me know if you find out if this is legal. I use it a lot, now that it works
and would be quite worried if this feature were to be fixed in a later release.
:)

-- 
Andrew Datars	(datars@tiger.physics.utoronto.ca)
Quantum Transport/General Computer Helper		     phone:(416)978-6185
Dept. of Physics, Univ. of Toronto			     fax:  (416)978-2537
Technical Details
Message-ID: <31180B8D.41C6@tiger.physics.utoronto.ca>
Path: arc1-ca.pugleaf.net!info.physics.utoronto.ca!news
References: <rshapiro-0602961258310001@esb.bbn.com> <3117C2B0.41C6@tiger.physics.utoronto.ca> <rshapiro-0602961711130001@esb.bbn.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac.programmer.codewarrior,comp.lang.c++
Path: arc1-ca.pugleaf.net!info.physics.utoronto.ca!news
From: Andrew Datars <datars@tiger.physics.utoronto.ca>
Subject: Re: using a template parameter as a qualifier -- legal or not?
Message-ID: <31180B8D.41C6@tiger.physics.utoronto.ca>
Nntp-Posting-Host: husky.physics.utoronto.ca
Sender: news@info.physics.utoronto.ca (System Administrator)
Mime-Version: 1.0
X-Mailer: Mozilla 2.0b6a (X11; I; IRIX64 6.0.1 IP26)
Content-Type: text/plain; charset=us-ascii
Organization: Dept. of Physics, Univ. of Toronto
Date: Wed, 7 Feb 1996 02:16:45 GMT
References: <rshapiro-0602961258310001@esb.bbn.com> <3117C2B0.41C6@tiger.physics.utoronto.ca> <rshapiro-0602961711130001@esb.bbn.com>
Content-Transfer-Encoding: 7bit