2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

remove minmax hack from win32.hpp and fix all places that could be affected by the minmax macros

[SVN r22394]
This commit is contained in:
Eric Niebler
2004-02-26 18:27:02 +00:00
parent a9c2a95366
commit 115f9f0644
5 changed files with 9 additions and 7 deletions

View File

@@ -91,7 +91,7 @@ namespace
if (m_distances.size() != n * n)
{
m_distances.clear();
m_distances.resize(n * n, std::numeric_limits<std::size_t>::max());
m_distances.resize(n * n, (std::numeric_limits<std::size_t>::max)());
m_known_vertices = n;
}
@@ -293,7 +293,7 @@ namespace
smart_graph::node_distance_map d(g.distances_to(dst));
if (d[src] == std::numeric_limits<std::size_t>::max())
if (d[src] == (std::numeric_limits<std::size_t>::max)())
return 0;
typedef property_map<cast_graph,edge_cast_t>::const_type cast_map;