Topic: My compiler vendor (MSVC 4.2b) also thinks this is not a bug.


Author: "Mario Contestabile" <contem00@cam.org>
Date: 1996/12/30
Raw View

Microsoft Visual C++ 4.2b also treats the code as legal.
In fact, "with_const = without_const;" won't even generate
a warning.

contem00@cam.org

Darin Adler <darin@goonsquad.spies.com> wrote in article
<darin-ya023180002512962355450001@news.genmagic.com>...
> Are "const int" and "int" different enough to make the following code
> snippet illegal?
>



[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]