Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2002-08-26 06:20:02


On Mon, 26 Aug 2002 08:25:34 +0200, Terje Slettebø
<tslettebo_at_[hidden]> wrote:

> I'm _not_ representing that VC++ is accurately reporting that this is a non-standard extension (I really don't know), but thought a heads up might be in order.
>To test this, I tried the following on Comeau C++ online, and it compiles without warnings in strict mode. However, does anybody know if this code is ok? I wouldn't trust MSVC's standards conformance any farther than I could throw the CD. :)
>
>typedef int Test;
>
>void f(double Test)
>{
>}

Sure! It's an elementary rule of name hiding! I don't know if we have
to laugh or cry at that message... Please, don't tell me what it does
with this:

typedef int Test;

void f(Test Test)
{
}

Genny.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk