COMP: Silence boost bind deprecation warnings (before CGAL-5.2.1)

This commit is contained in:
Mark Olesen
2022-04-08 10:15:53 +02:00
parent 6dac06dd38
commit d7c873902c
6 changed files with 48 additions and 11 deletions

View File

@ -33,7 +33,13 @@ Description
#ifndef CGALTriangulation3DKernel_H
#define CGALTriangulation3DKernel_H
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Silence boost bind deprecation warnings (before CGAL-5.2.1)
#include "CGAL/version.h"
#if defined(CGAL_VERSION_NR) && (CGAL_VERSION_NR < 1050211000)
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#endif
// ------------------------------------------------------------------------- //
#include "CGAL/Delaunay_triangulation_3.h"

View File

@ -36,8 +36,16 @@ SourceFiles
\*---------------------------------------------------------------------------*/
#ifndef indexedCell_H
#define indexedCell_H
#ifndef Foam_CGAL_indexedCell_H
#define Foam_CGAL_indexedCell_H
// Silence boost bind deprecation warnings (before CGAL-5.2.1)
#include "CGAL/version.h"
#if defined(CGAL_VERSION_NR) && (CGAL_VERSION_NR < 1050211000)
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#endif
// ------------------------------------------------------------------------- //
#include "CGAL/Triangulation_3.h"
#include "CGAL/Delaunay_triangulation_cell_base_with_circumcenter_3.h"

View File

@ -37,8 +37,16 @@ SourceFiles
\*---------------------------------------------------------------------------*/
#ifndef indexedVertex_H
#define indexedVertex_H
#ifndef Foam_CGAL_indexedVertex_H
#define Foam_CGAL_indexedVertex_H
// Silence boost bind deprecation warnings (before CGAL-5.2.1)
#include "CGAL/version.h"
#if defined(CGAL_VERSION_NR) && (CGAL_VERSION_NR < 1050211000)
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#endif
// ------------------------------------------------------------------------- //
#include "CGAL/Triangulation_3.h"
#include "CGALTriangulation3DKernel.H"

View File

@ -33,10 +33,18 @@ Description
#ifndef CGALTriangulation2DKernel_H
#define CGALTriangulation2DKernel_H
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Silence boost bind deprecation warnings (before CGAL-5.2.1)
#include "CGAL/version.h"
#if defined(CGAL_VERSION_NR) && (CGAL_VERSION_NR < 1050211000)
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#endif
// ------------------------------------------------------------------------- //
#include "CGAL/Delaunay_triangulation_2.h"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef CGAL_INEXACT
// Fast kernel using a double as the storage type but the triangulation

View File

@ -32,10 +32,9 @@ Description
\*---------------------------------------------------------------------------*/
#ifndef indexedFace_H
#define indexedFace_H
#ifndef Foam_CGAL_indexedFace_H
#define Foam_CGAL_indexedFace_H
#include "CGAL/Triangulation_2.h"
#include "indexedVertex.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -32,8 +32,16 @@ Description
\*---------------------------------------------------------------------------*/
#ifndef indexedVertex_H
#define indexedVertex_H
#ifndef Foam_CGAL_indexedVertex_H
#define Foam_CGAL_indexedVertex_H
// Silence boost bind deprecation warnings (before CGAL-5.2.1)
#include "CGAL/version.h"
#if defined(CGAL_VERSION_NR) && (CGAL_VERSION_NR < 1050211000)
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#endif
// ------------------------------------------------------------------------- //
#include "CGAL/Triangulation_2.h"