aboutsummaryrefslogtreecommitdiff
path: root/pipermail/nel/2000-November/000013.html
blob: 8a43b004564d3394fa319b124e5b2049a8d48c33 (plain)
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>&gt;<i> The VC++/STL min/max problem is pretty well known, and is a result of a
</I>&gt;<i> very buggy STL implementation in VC++, and some lawsuits.
</I>&gt;<i>
</I>&gt;<i> Simple answer:  Define NOMINMAX in your Build Settings
</I>
ok, this define disables the macro min &amp; 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 &amp;
max
template function in our code... no very cool...

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