Classification: Workaround or VC std17 boost bug

This commit is contained in:
Andreas Fabri 2023-07-06 07:26:54 +01:00
parent f7a78677fc
commit 6ed2272c1d
1 changed files with 8 additions and 4 deletions

View File

@ -16,6 +16,7 @@
#include <map> #include <map>
#include <memory> #include <memory>
#include <CGAL/assertions.h>
#define CGAL_CLASSIFICATION_IMAGE_SIZE_LIMIT 100000000 #define CGAL_CLASSIFICATION_IMAGE_SIZE_LIMIT 100000000
@ -38,12 +39,15 @@ class Image
std::shared_ptr<Map> m_sparse; std::shared_ptr<Map> m_sparse;
Type m_default; Type m_default;
// Forbid using copy constructor
Image (const Image&)
{
}
public: 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) Image () : m_width(0), m_height(0), m_depth(0)
{ {