Fix for Windows 'min/max' bug

This commit is contained in:
Andreas Fabri 2012-01-18 10:10:14 +00:00
parent c45cc051dd
commit 9d86cb2ea9
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ private:
std::size_t no; std::size_t no;
m_scan->scan_facet( no, m_cnt); m_scan->scan_facet( no, m_cnt);
m_indices.reserve( no); m_indices.reserve( no);
std::size_t index = std::numeric_limits<std::size_t>::max(); std::size_t index = (std::numeric_limits<std::size_t>::max)();
// A huge value helps to detect a potential // A huge value helps to detect a potential
// error in the function scan_facet_vertex_index // error in the function scan_facet_vertex_index
for (std::size_t i = 0; i < no; ++i) { for (std::size_t i = 0; i < no; ++i) {