Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: VC++6.0 - int template parameter

Author: Bo Persson

Date: 14:20:35 02/23/03

Go up one level in this thread


On February 22, 2003 at 15:45:38, David Rasmussen wrote:


>
>MSVC 6 has a _lot_ of compliance issues, and most of them are about templates.

True.

>But MSVC 6 doesn't even handle for (int i = 0 ...) correctly. The int i is
>visible in the enclosing scope after the loop, which is incorrect.

It was correct behaviour when first implemented by MS. Unfortunately the
standards committee later changed its mind...

Also, there is a switch /Za that disables this and other extensions. Pretty
useless in practice though, as windows.h uses some of the extensions.

Version 6.0 is now almost 5 years old.

>MSVC 7 (.NET) corrects a lot of these. I am not at home, so I can't check your
>example. Also, Intel C++ 7 is even more compliant, although it also have some
>issues.
>
>/David

Bo Persson
bop2@telia.com



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.