1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Nel] matrix.cpp std::min/max problems?</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:lecroart%40nevrax.com">
<LINK REL="Previous" HREF="000011.html">
<LINK REL="Next" HREF="000015.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Nel] matrix.cpp std::min/max problems?</H1>
<B>Vianney Lecroart</B>
<A HREF="mailto:lecroart%40nevrax.com"
TITLE="[Nel] matrix.cpp std::min/max problems?">lecroart@nevrax.com</A><BR>
<I>Fri, 10 Nov 2000 11:43:48 +0100</I>
<P><UL>
<LI> Previous message: <A HREF="000011.html">[Nel] matrix.cpp std::min/max problems?</A></li>
<LI> Next message: <A HREF="000015.html">[Nel] matrix.cpp std::min/max problems?</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#13">[ date ]</a>
<a href="thread.html#13">[ thread ]</a>
<a href="subject.html#13">[ subject ]</a>
<a href="author.html#13">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>><i> The VC++/STL min/max problem is pretty well known, and is a result of a
</I>><i> very buggy STL implementation in VC++, and some lawsuits.
</I>><i>
</I>><i> Simple answer: Define NOMINMAX in your Build Settings
</I>
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...
><i> Longer answer:
</I>><i>
</I><A HREF="http://www.isis.ecs.soton.ac.uk/share/problems/fuzzyClouds/NetMet/netmet/doc">http://www.isis.ecs.soton.ac.uk/share/problems/fuzzyClouds/NetMet/netmet/doc</A>
s/stlhelp.txt
><i>
</I>><i> The STL that ships with Visual C++ was developed by Dinkumware, rather
</I>><i> than by Microsoft. Detailed errata is available here:
</I>><i> <A HREF="http://www.dinkumware.com/">http://www.dinkumware.com/</A>
</I>><i>
</I>><i> Bryce
</I>><i>
</I>><i> On Fri, 10 Nov 2000, Vincent Archer wrote:
</I>><i> > According to Cary Farrier:
</I>><i> > > I just updated from the latest CVS snapshot, added r:\code\net\include
</I>><i> > > to the project settings, however when compiling matrix.cpp in VC++ 6.0
</I>><i> > > (SP3) the compiler is complaining that 'max is not a member of std'.
</I>><i> >
</I>><i> > Note that, strictly speaking, bug reports should go thru the web
</I>><i> > interface rather than the mailing list. It's a lot easier to manage
</I>><i> > there. Use the mailing list if you can't access the WWW at all
</I>><i> > for some reason (like being buried deep behind 4 firewalls that require
</I>><i> > you to sign in blood to access the outside world).
</I>><i> >
</I>><i> > Bug reported to the developper in charge.
</I>><i> >
</I>><i>
</I>><i> --
</I>><i> Bryce Harrington
</I>><i> bryce @ neptune.net
</I>><i>
</I>><i> _______________________________________________
</I>><i> Nel mailing list
</I>><i> <A HREF="mailto:Nel@nevrax.org">Nel@nevrax.org</A>
</I>><i> <A HREF="/mailman/listinfo.cgi/nel">/mailman/listinfo.cgi/nel</A>
</I>
</pre>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="000011.html">[Nel] matrix.cpp std::min/max problems?</A></li>
<LI> Next message: <A HREF="000015.html">[Nel] matrix.cpp std::min/max problems?</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#13">[ date ]</a>
<a href="thread.html#13">[ thread ]</a>
<a href="subject.html#13">[ subject ]</a>
<a href="author.html#13">[ author ]</a>
</LI>
</UL>
</body></html>
|