Skip to content

Commit 1257ec0

Browse files
committed
keep workaround for the intended compiler only
1 parent a4c13ac commit 1257ec0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

QP_solver/include/CGAL/QP_solver/functors.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ class Map_with_default {
254254
: map(m), d(v)
255255
{}
256256

257+
#if defined(BOOST_MSVC) && (_MSC_VER < 1920) // 1920 is Visual Studio 2019 version 16.0.0
257258
// Added as workaround for VC2017 with /arch:AVX to fix
258259
// https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-4.14-I-95/QP_solver/TestReport_afabri_x64_Cygwin-Windows10_MSVC2017-Release-64bits.gz
259260
Map_with_default& operator=(const Map_with_default& other)
@@ -262,6 +263,7 @@ class Map_with_default {
262263
d = other.d;
263264
return *this;
264265
}
266+
#endif
265267

266268
// operator()
267269
const mapped_type& operator() (key_type n) const {

0 commit comments

Comments
 (0)