Enable Boost.Multiprecision with MSVC and recent boost

This commit is contained in:
Marc Glisse 2020-11-11 10:22:48 +01:00
parent d94f015acd
commit 291746d49c
1 changed files with 4 additions and 3 deletions

View File

@ -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 <CGAL/functional.h> // *ary_function