From 6ed2272c1d7d2b2f524659060e62a9c9f5df63dd Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 6 Jul 2023 07:26:54 +0100 Subject: [PATCH] Classification: Workaround or VC std17 boost bug --- Classification/include/CGAL/Classification/Image.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Classification/include/CGAL/Classification/Image.h b/Classification/include/CGAL/Classification/Image.h index 924e39bde24..084e9572764 100644 --- a/Classification/include/CGAL/Classification/Image.h +++ b/Classification/include/CGAL/Classification/Image.h @@ -16,6 +16,7 @@ #include #include +#include #define CGAL_CLASSIFICATION_IMAGE_SIZE_LIMIT 100000000 @@ -38,12 +39,15 @@ class Image std::shared_ptr m_sparse; Type m_default; - // Forbid using copy constructor - Image (const Image&) - { - } public: + // Forbid using copy constructor + // Make it public for a strange VC++ std17 boost-1_82 error + // https://github.com/boostorg/core/issues/148 + Image(const Image&) + { + CGAL_assertion(false); + } Image () : m_width(0), m_height(0), m_depth(0) {