From 24ac59a01cdc073fe4bfcf70c366740ea7a60c28 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Thu, 21 Jun 2018 16:03:57 +0200 Subject: [PATCH] Avoid using std::unordered_set for MSVC2013 as performances can be very bad See: https://medium.com/plaxis/embarrassingly-poor-performance-of-regular-point-sets-with-std-unordered-set-418cb413974b --- Installation/include/CGAL/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Installation/include/CGAL/config.h b/Installation/include/CGAL/config.h index c7fcad9736f..dbfe6fcccb0 100644 --- a/Installation/include/CGAL/config.h +++ b/Installation/include/CGAL/config.h @@ -184,7 +184,8 @@ #if defined(BOOST_NO_0X_HDR_UNORDERED_SET) || \ defined(BOOST_NO_0X_HDR_UNORDERED_MAP) || \ defined(BOOST_NO_CXX11_HDR_UNORDERED_SET) || \ - defined(BOOST_NO_CXX11_HDR_UNORDERED_MAP) + defined(BOOST_NO_CXX11_HDR_UNORDERED_MAP) || \ + (defined(_MSC_VER) && (_MSC_VER == 1800)) // std::unordered_set is very bad in MSVC2013 #define CGAL_CFG_NO_CPP0X_UNORDERED 1 #endif #if defined( BOOST_NO_0X_HDR_THREAD) || \