add workaround to use boost hana with MSVC

This commit is contained in:
Sébastien Loriot 2022-10-17 11:23:22 +02:00
parent a314ee6906
commit b6bdac2847
1 changed files with 14 additions and 3 deletions

View File

@ -21,13 +21,24 @@
#include <cstdlib>
#include <random>
#include <type_traits>
#include <boost/hana.hpp>
#include <CGAL/Qt/Basic_viewer_qt.h>
#ifdef CGAL_USE_BASIC_VIEWER
#include <type_traits>
#if defined(BOOST_MSVC)
// workaround for using boost::hana with MSVC without warnings
#pragma push_macro("__cplusplus")
#undef __cplusplus
#define __cplusplus _MSVC_LANG
#include <boost/hana.hpp>
#pragma pop_macro("__cplusplus")
#else
#include <boost/hana.hpp>
#endif
#include <CGAL/Qt/init_ogl_context.h>
#include <CGAL/Arrangement_2.h>