From 1d095e8a63e4617d069a11c56b509dde346abcab Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 26 Jan 2022 13:12:41 +0000 Subject: [PATCH] Polynomial: Workaround for VC bug when cout << double while rounding up --- Polynomial/test/Polynomial/test_polynomial.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Polynomial/test/Polynomial/test_polynomial.h b/Polynomial/test/Polynomial/test_polynomial.h index a8a07ba92d0..5141ffa239c 100644 --- a/Polynomial/test/Polynomial/test_polynomial.h +++ b/Polynomial/test/Polynomial/test_polynomial.h @@ -285,6 +285,13 @@ void division(CGAL::Integral_domain_tag) { template void io() { + + // https://github.com/CGAL/cgal/issues/6272#issuecomment-1022005703 + // VCbug: Setting the rounding mode influences output of double + // The rounding mode is set to CGAL_FE_UPWARD in the test ccp files + // in order to test Modular Arithmetic + // Without this change which is local to the function p == q will fail + CGAL::Protect_FPU_rounding pfr(CGAL_FE_TONEAREST); typedef CGAL::Polynomial POLY; {