Topic: Visual C++ bug?
Author: "Robert W. Hand" <rwhand@operamail.com>
Date: 2000/06/07 Raw View
A bug I believe. Check out:
http://support.microsoft.com/support/kb/articles/Q168/0/28.ASP
FIX: C2955 Caused by the "using" Declaration
--
Best wishes,
Bob
"Paul Rigas" <paul.rigas@dtn.ntl.com> wrote in message
news:qBu_4.4667$JO2.102351@news2-win.server.ntlworld.com...
> Microsft Visual C++ thinks
> std::min<int>(a,b); (for example) is perfectly fine, it also likes
>
> using namespace std;
> min<int>(a,b)
>
> but
>
> using std::min;
> min<int>(a,b);
>
> makes it produce an error about an unexpected int. Can someone please
> confirm that is valid C++ and a bug in Microsoft's implementation?
>
> Thanks
>
> Paul
>
> ---
> [ 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 ]
> [ --- Please see the FAQ before posting. --- ]
> [ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
>
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: "Paul Rigas" <paul.rigas@dtn.ntl.com>
Date: 2000/06/05 Raw View
Microsft Visual C++ thinks
std::min<int>(a,b); (for example) is perfectly fine, it also likes
using namespace std;
min<int>(a,b)
but
using std::min;
min<int>(a,b);
makes it produce an error about an unexpected int. Can someone please
confirm that is valid C++ and a bug in Microsoft's implementation?
Thanks
Paul
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]