Skip to content

Commit 30faf62

Browse files
committed
Add wrappers around 2 boost headers to push/pop pragma
1 parent 6a00be2 commit 30faf62

File tree

9 files changed

+108
-20
lines changed

9 files changed

+108
-20
lines changed

Algebraic_foundations/include/CGAL/Coercion_traits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include <iterator>
3434

35-
#include <boost/iterator/transform_iterator.hpp>
35+
#include <CGAL/boost/iterator/transform_iterator.hpp>
3636
#include <boost/type_traits/is_same.hpp>
3737

3838
#include <CGAL/tags.h>

Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/shear.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include <functional>
3333
#include <iterator>
3434
#include <boost/iterator/transform_iterator.hpp>
35-
#include <boost/iterator/counting_iterator.hpp>
35+
#include <CGAL/boost/iterator/counting_iterator.hpp>
3636

3737
namespace CGAL {
3838

Bounding_volumes/examples/Min_annulus_d/min_annulus_d.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,26 @@
33
// as input type and some internal EXACT floating point type
44
#include <iostream>
55
#include <cassert>
6+
7+
#if 0
8+
#include <CGAL/config.h>
9+
10+
#if defined(BOOST_MSVC)
11+
# pragma warning(push)
12+
# pragma warning(disable:4244)
13+
#endif
14+
15+
//#include <boost/iterator/counting_iterator.hpp>
16+
#include <boost/iterator/iterator_adaptor.hpp>
17+
18+
#if defined(BOOST_MSVC)
19+
# pragma warning(pop)
20+
#endif
21+
#endif
22+
623
#include <CGAL/Homogeneous.h>
24+
25+
726
#include <CGAL/Min_annulus_d.h>
827
#include <CGAL/Min_sphere_annulus_d_traits_2.h>
928

Bounding_volumes/include/CGAL/Min_annulus_d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <CGAL/QP_solver/functors.h>
3131
#include <CGAL/QP_solver/QP_full_filtered_pricing.h>
3232
#include <CGAL/QP_solver/QP_full_exact_pricing.h>
33-
#include <boost/iterator/counting_iterator.hpp>
33+
#include <CGAL/boost/iterator/counting_iterator.hpp>
3434
#include <boost/iterator/transform_iterator.hpp>
3535

3636
// here is how it works. We have d+2 variables:
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright (c) 2014
2+
// Utrecht University (The Netherlands),
3+
// ETH Zurich (Switzerland),
4+
// INRIA Sophia-Antipolis (France),
5+
// Max-Planck-Institute Saarbruecken (Germany),
6+
// and Tel-Aviv University (Israel). All rights reserved.
7+
//
8+
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
9+
// modify it under the terms of the GNU Lesser General Public License as
10+
// published by the Free Software Foundation; either version 3 of the License,
11+
// or (at your option) any later version.
12+
//
13+
// Licensees holding a valid commercial license may use this file in
14+
// accordance with the commercial license agreement provided with the software.
15+
//
16+
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
17+
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18+
//
19+
// $URL$
20+
// $Id$
21+
//
22+
//
23+
// Author(s) : Andreas Fabri
24+
25+
#ifndef CGAL_BOOST_ITERATOR_COUNTING_ITERATOR_H
26+
#define CGAL_BOOST_ITERATOR_COUNTING_ITERATOR_H
27+
28+
#include <boost/config.hpp>
29+
30+
#if defined(BOOST_MSVC)
31+
# pragma warning(push)
32+
# pragma warning(disable:4244)
33+
#endif
34+
35+
#include <boost/iterator/counting_iterator.hpp>
36+
37+
#if defined(BOOST_MSVC)
38+
# pragma warning(pop)
39+
#endif
40+
41+
#endif // CGAL_BOOST_ITERATOR_COUNTING_ITERATOR_H
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright (c) 2014
2+
// Utrecht University (The Netherlands),
3+
// ETH Zurich (Switzerland),
4+
// INRIA Sophia-Antipolis (France),
5+
// Max-Planck-Institute Saarbruecken (Germany),
6+
// and Tel-Aviv University (Israel). All rights reserved.
7+
//
8+
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
9+
// modify it under the terms of the GNU Lesser General Public License as
10+
// published by the Free Software Foundation; either version 3 of the License,
11+
// or (at your option) any later version.
12+
//
13+
// Licensees holding a valid commercial license may use this file in
14+
// accordance with the commercial license agreement provided with the software.
15+
//
16+
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
17+
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18+
//
19+
// $URL$
20+
// $Id$
21+
//
22+
//
23+
// Author(s) : Andreas Fabri
24+
25+
#ifndef CGAL_BOOST_ITERATOR_COUNTING_ITERATOR_H
26+
#define CGAL_BOOST_ITERATOR_COUNTING_ITERATOR_H
27+
28+
#include <boost/config.hpp>
29+
30+
#if defined(BOOST_MSVC)
31+
# pragma warning(push)
32+
# pragma warning(disable:4244)
33+
#endif
34+
35+
#include <boost/iterator/counting_iterator.hpp>
36+
37+
#if defined(BOOST_MSVC)
38+
# pragma warning(pop)
39+
#endif
40+
41+
#endif // CGAL_BOOST_ITERATOR_COUNTING_ITERATOR_H

QP_solver/include/CGAL/QP_models.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,7 @@
3232
#include <istream>
3333
#include <sstream>
3434

35-
#if defined(BOOST_MSVC)
36-
# pragma warning(push)
37-
# pragma warning(disable:4244)
38-
#endif
39-
#include <boost/iterator/counting_iterator.hpp>
40-
#if defined(BOOST_MSVC)
41-
# pragma warning(pop)
42-
#endif
43-
35+
#include <CGAL/boost/iterator/counting_iterator.hpp>
4436
#include <boost/iterator/transform_iterator.hpp>
4537

4638
// this file defines the following models:

QP_solver/include/CGAL/QP_solution.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,8 @@
3333
#include <CGAL/QP_solver/assertions.h>
3434
#include <boost/bind.hpp>
3535
#include <boost/function.hpp>
36-
#if defined(BOOST_MSVC)
37-
# pragma warning(push)
38-
# pragma warning(disable:4244)
39-
#endif
40-
#include <boost/iterator/counting_iterator.hpp>
41-
#if defined(BOOST_MSVC)
42-
# pragma warning(pop)
43-
#endif
36+
37+
#include <CGAL/boost/iterator/counting_iterator.hpp>
4438
#include <boost/iterator/transform_iterator.hpp>
4539

4640
namespace CGAL {

QP_solver/include/CGAL/QP_solver/QP_solver.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
#include <boost/bind.hpp>
4545
#include <boost/function.hpp>
46+
4647
#include <boost/iterator/transform_iterator.hpp>
4748

4849
#include <vector>

0 commit comments

Comments
 (0)