From 9d86cb2ea9cb273e0162a418d1c6caae090e2f32 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 18 Jan 2012 10:10:14 +0000 Subject: [PATCH] Fix for Windows 'min/max' bug --- Stream_support/include/CGAL/IO/Scanner_OFF.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stream_support/include/CGAL/IO/Scanner_OFF.h b/Stream_support/include/CGAL/IO/Scanner_OFF.h index 38bd4263ab0..5f85cc96d63 100644 --- a/Stream_support/include/CGAL/IO/Scanner_OFF.h +++ b/Stream_support/include/CGAL/IO/Scanner_OFF.h @@ -170,7 +170,7 @@ private: std::size_t no; m_scan->scan_facet( no, m_cnt); m_indices.reserve( no); - std::size_t index = std::numeric_limits::max(); + std::size_t index = (std::numeric_limits::max)(); // A huge value helps to detect a potential // error in the function scan_facet_vertex_index for (std::size_t i = 0; i < no; ++i) {