From 291746d49c40c856b2eeeaec15dcc07e2e6b2e9a Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Wed, 11 Nov 2020 10:22:48 +0100 Subject: [PATCH] Enable Boost.Multiprecision with MSVC and recent boost --- Number_types/include/CGAL/boost_mp.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Number_types/include/CGAL/boost_mp.h b/Number_types/include/CGAL/boost_mp.h index cd55ea3c4a5..59e8e9d2d63 100644 --- a/Number_types/include/CGAL/boost_mp.h +++ b/Number_types/include/CGAL/boost_mp.h @@ -18,9 +18,10 @@ // It is easier to disable this number type completely for old versions. // Before 1.63, I/O is broken. Again, disabling the whole file is just the // easy solution. -// TODO: MSVC has trouble with versions <= 1.69, reenable once 1.70 has been -// tested. https://github.com/boostorg/multiprecision/issues/98 -#if !defined CGAL_DISABLE_GMP && !defined CGAL_DO_NOT_USE_BOOST_MP && BOOST_VERSION >= 106300 && !defined _MSC_VER +// MSVC had trouble with versions <= 1.69: +// https://github.com/boostorg/multiprecision/issues/98 +#if !defined CGAL_DISABLE_GMP && !defined CGAL_DO_NOT_USE_BOOST_MP && \ + BOOST_VERSION >= 106300 && (!defined _MSC_VER || BOOST_VERSION >= 107000) #define CGAL_USE_BOOST_MP 1 #include // *ary_function