Re: non-const reference to tem****ary derived from pure virtual Base
by Andrey Tarasevich <andreytarasevich@[EMAIL PROTECTED]
>
May 6, 2008 at 10:45 AM
sk_usenet wrote:
> ...
> Yes, by default VC allows this as an extension to Standrad (I tested a
long
> time back on probably v7.0). I think it's the /Za option in VC compiler
that
> would flash the error.
> ...
Yes, /Za will fix it.
Without /Za in VS2005 even they implemented a mix of standard behavior
and extended behavior so that the whole thing does seem to satisfy the
formal definition of "compiler extension", while the VC6 was genuinely
and hopelessly broken in that regard.
A plug: see item 2.3 in
http://atarasevich.blogspot.com/2008/02/microsoft-vs2005-c-non-compliance_07.html
--
Best regards,
Andrey Tarasevich