From c537e4ed6448f08100aca06b40bde381a35ef416 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 11 Apr 2014 16:51:04 +0200 Subject: [PATCH] Use the workaround only for VC++ and only starting from VC10 --- Stream_support/include/CGAL/IO/io.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Stream_support/include/CGAL/IO/io.h b/Stream_support/include/CGAL/IO/io.h index 237f15c773f..7bf4be91fcd 100644 --- a/Stream_support/include/CGAL/IO/io.h +++ b/Stream_support/include/CGAL/IO/io.h @@ -26,12 +26,13 @@ #ifndef CGAL_IO_H #define CGAL_IO_H + #include +#include #include #include #include #include -#include namespace CGAL { @@ -169,9 +170,13 @@ is_binary(std::ios& i); inline std::istream& extract(std::istream& is, double &d) { +#if defined( _MSC_VER ) && ( _MSC_VER > 1600 ) std::string s; is >> s; sscanf(s.c_str(), "%lf", &d); +#else + is >> d; +#endif return is; }