[Nel] matrix.cpp std::min/max problems?

Vianney Lecroart lecroart@nevrax.com
Fri, 10 Nov 2000 11:43:48 +0100


> The VC++/STL min/max problem is pretty well known, and is a result of a
> very buggy STL implementation in VC++, and some lawsuits.
>
> Simple answer:  Define NOMINMAX in your Build Settings

ok, this define disables the macro min & max, it's same behavior as doing
#undef min #undef max
but I search min in the VC include directory and subdirectory and there s
*no* min
definition in the STL (no template min) so we have to define our own min &
max
template function in our code... no very cool...

> Longer answer:
>
http://www.isis.ecs.soton.ac.uk/share/problems/fuzzyClouds/NetMet/netmet/doc
s/stlhelp.txt
>
> The STL that ships with Visual C++ was developed by Dinkumware, rather
> than by Microsoft.  Detailed errata is available here:
>     http://www.dinkumware.com/
>
> Bryce
>
> On Fri, 10 Nov 2000, Vincent Archer wrote:
> > According to Cary Farrier:
> > > I just updated from the latest CVS snapshot, added r:\code\net\include
> > > to the project settings, however when compiling matrix.cpp in VC++ 6.0
> > > (SP3) the compiler is complaining that 'max is not a member of std'.
> >
> > Note that, strictly speaking, bug reports should go thru the web
> > interface rather than the mailing list. It's a lot easier to manage
> > there. Use the mailing list if you can't access the WWW at all
> > for some reason (like being buried deep behind 4 firewalls that require
> > you to sign in blood to access the outside world).
> >
> > Bug reported to the developper in charge.
> >
>
> --
> Bryce Harrington
> bryce @ neptune.net
>
> _______________________________________________
> Nel mailing list
> Nel@nevrax.org
> http://www.nevrax.org/mailman/listinfo.cgi/nel