File tree 2 files changed +27
-4
lines changed
2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -559,10 +559,10 @@ void TriContourGenerator::clear_visited_flags(bool include_boundaries)
559
559
// Clear _boundaries_visited.
560
560
for (BoundariesVisited::iterator it = _boundaries_visited.begin ();
561
561
it != _boundaries_visited.end (); ++it)
562
- fill (it->begin (), it->end (), false );
562
+ std:: fill (it->begin (), it->end (), false );
563
563
564
564
// Clear _boundaries_used.
565
- fill (_boundaries_used.begin (), _boundaries_used.end (), false );
565
+ std:: fill (_boundaries_used.begin (), _boundaries_used.end (), false );
566
566
}
567
567
}
568
568
Original file line number Diff line number Diff line change 1
- /* mplutils.h --
1
+ /* mplutils.h --
2
2
*
3
3
* $Header$
4
4
* $Log$
20
20
void _VERBOSE (const std::string&);
21
21
22
22
23
- #undef CLAMP
23
+ #undef CLAMP
24
24
#define CLAMP (x, low, high ) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
25
25
26
26
#undef MAX
@@ -45,4 +45,27 @@ public :
45
45
friend std::ostream &operator <<(std::ostream &, const Printf &);
46
46
};
47
47
48
+ #if defined(_MSC_VER) && (_MSC_VER == 1400)
49
+
50
+ /* Required by libpng and zlib */
51
+ #pragma comment(lib, "bufferoverflowU")
52
+
53
+ /* std::max and std::min are missing in Windows Server 2003 R2
54
+ Platform SDK compiler. See matplotlib bug #3067191 */
55
+ namespace std {
56
+
57
+ template <class T > inline T max (const T& a, const T& b)
58
+ {
59
+ return (a > b) ? a : b;
60
+ }
61
+
62
+ template <class T > inline T min (const T& a, const T& b)
63
+ {
64
+ return (a < b) ? a : b;
65
+ }
66
+
67
+ }
68
+
69
+ #endif
70
+
48
71
#endif
You can’t perform that action at this time.
0 commit comments