Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54f1417

Browse files
committed
Include only necessary headers of Boost.Range.
1 parent 7b8b3f6 commit 54f1417

File tree

127 files changed

+566
-308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+566
-308
lines changed

include/boost/geometry/algorithms/append.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
// Copyright (c) 2008-2014 Bruno Lalande, Paris, France.
55
// Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
66

7-
// This file was modified by Oracle on 2014.
8-
// Modifications copyright (c) 2014, Oracle and/or its affiliates.
9-
7+
// This file was modified by Oracle on 2014-2020.
8+
// Modifications copyright (c) 2014-2020, Oracle and/or its affiliates.
109
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
1110
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
1211

@@ -21,7 +20,9 @@
2120
#define BOOST_GEOMETRY_ALGORITHMS_APPEND_HPP
2221

2322

24-
#include <boost/range.hpp>
23+
#include <boost/range/begin.hpp>
24+
#include <boost/range/end.hpp>
25+
#include <boost/range/value_type.hpp>
2526

2627
#include <boost/variant/apply_visitor.hpp>
2728
#include <boost/variant/static_visitor.hpp>

include/boost/geometry/algorithms/area.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <boost/core/ignore_unused.hpp>
2424
#include <boost/range/begin.hpp>
2525
#include <boost/range/end.hpp>
26+
#include <boost/range/size.hpp>
2627
#include <boost/range/value_type.hpp>
2728

2829
#include <boost/variant/apply_visitor.hpp>

include/boost/geometry/algorithms/buffer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
55
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
66

7-
// This file was modified by Oracle on 2017, 2019.
8-
// Modifications copyright (c) 2017, 2019 Oracle and/or its affiliates.
7+
// This file was modified by Oracle on 2017-2020.
8+
// Modifications copyright (c) 2017-2020 Oracle and/or its affiliates.
99
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
1010

1111
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
@@ -22,7 +22,7 @@
2222

2323
#include <boost/numeric/conversion/cast.hpp>
2424

25-
#include <boost/range.hpp>
25+
#include <boost/range/value_type.hpp>
2626

2727
#include <boost/variant/apply_visitor.hpp>
2828
#include <boost/variant/static_visitor.hpp>

include/boost/geometry/algorithms/centroid.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
// Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
66
// Copyright (c) 2014-2017 Adam Wulkiewicz, Lodz, Poland.
77

8-
// This file was modified by Oracle on 2014, 2015.
9-
// Modifications copyright (c) 2014-2015 Oracle and/or its affiliates.
10-
8+
// This file was modified by Oracle on 2014-2020.
9+
// Modifications copyright (c) 2014-2020 Oracle and/or its affiliates.
1110
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
1211
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
1312

@@ -25,9 +24,10 @@
2524
#include <cstddef>
2625

2726
#include <boost/core/ignore_unused.hpp>
28-
#include <boost/range.hpp>
27+
#include <boost/range/begin.hpp>
28+
#include <boost/range/end.hpp>
29+
#include <boost/range/size.hpp>
2930
#include <boost/throw_exception.hpp>
30-
3131
#include <boost/variant/apply_visitor.hpp>
3232
#include <boost/variant/static_visitor.hpp>
3333
#include <boost/variant/variant_fwd.hpp>

include/boost/geometry/algorithms/convert.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
#include <type_traits>
2525

2626
#include <boost/numeric/conversion/cast.hpp>
27-
#include <boost/range.hpp>
28-
27+
#include <boost/range/begin.hpp>
28+
#include <boost/range/end.hpp>
29+
#include <boost/range/size.hpp>
30+
#include <boost/range/value_type.hpp>
2931
#include <boost/variant/apply_visitor.hpp>
3032
#include <boost/variant/static_visitor.hpp>
3133
#include <boost/variant/variant_fwd.hpp>

include/boost/geometry/algorithms/correct.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
#include <cstddef>
2525
#include <functional>
2626

27-
#include <boost/range.hpp>
27+
#include <boost/range/begin.hpp>
28+
#include <boost/range/end.hpp>
29+
#include <boost/range/value_type.hpp>
2830

2931
#include <boost/variant/apply_visitor.hpp>
3032
#include <boost/variant/static_visitor.hpp>

include/boost/geometry/algorithms/correct_closure.hpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
// Copyright (c) 2017 Barend Gehrels, Amsterdam, the Netherlands.
44

5+
// This file was modified by Oracle on 2020.
6+
// Modifications copyright (c) 2020 Oracle and/or its affiliates.
7+
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
8+
59
// Use, modification and distribution is subject to the Boost Software License,
610
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
711
// http://www.boost.org/LICENSE_1_0.txt)
@@ -11,7 +15,10 @@
1115

1216
#include <cstddef>
1317

14-
#include <boost/range.hpp>
18+
#include <boost/range/begin.hpp>
19+
#include <boost/range/end.hpp>
20+
#include <boost/range/size.hpp>
21+
#include <boost/range/value_type.hpp>
1522

1623
#include <boost/variant/apply_visitor.hpp>
1724
#include <boost/variant/static_visitor.hpp>

include/boost/geometry/algorithms/detail/buffer/buffer_inserter.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818

1919
#include <boost/core/ignore_unused.hpp>
2020
#include <boost/numeric/conversion/cast.hpp>
21-
#include <boost/range.hpp>
21+
#include <boost/range/begin.hpp>
22+
#include <boost/range/end.hpp>
23+
#include <boost/range/rbegin.hpp>
24+
#include <boost/range/rend.hpp>
25+
#include <boost/range/size.hpp>
26+
#include <boost/range/value_type.hpp>
2227

2328
#include <boost/geometry/algorithms/detail/direction_code.hpp>
2429
#include <boost/geometry/algorithms/detail/buffer/buffered_piece_collection.hpp>

include/boost/geometry/algorithms/detail/buffer/buffer_policies.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// Copyright (c) 2012-2014 Barend Gehrels, Amsterdam, the Netherlands.
44

5-
// This file was modified by Oracle on 2017, 2018.
6-
// Modifications copyright (c) 2017-2018, Oracle and/or its affiliates.
5+
// This file was modified by Oracle on 2017-2020.
6+
// Modifications copyright (c) 2017-2020, Oracle and/or its affiliates.
77
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
88

99
// Use, modification and distribution is subject to the Boost Software License,
@@ -15,7 +15,7 @@
1515

1616
#include <cstddef>
1717

18-
#include <boost/range.hpp>
18+
#include <boost/range/value_type.hpp>
1919

2020
#include <boost/geometry/core/coordinate_type.hpp>
2121
#include <boost/geometry/core/point_type.hpp>

include/boost/geometry/algorithms/detail/buffer/buffered_piece_collection.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
#include <set>
2020

2121
#include <boost/core/ignore_unused.hpp>
22-
#include <boost/range.hpp>
22+
#include <boost/range/begin.hpp>
23+
#include <boost/range/empty.hpp>
24+
#include <boost/range/end.hpp>
25+
#include <boost/range/size.hpp>
26+
#include <boost/range/value_type.hpp>
2327

2428
#include <boost/geometry/core/assert.hpp>
2529
#include <boost/geometry/core/coordinate_type.hpp>

include/boost/geometry/algorithms/detail/buffer/buffered_ring.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
// Copyright (c) 2012-2015 Barend Gehrels, Amsterdam, the Netherlands.
44

5+
// This file was modified by Oracle on 2020.
6+
// Modifications copyright (c) 2020 Oracle and/or its affiliates.
7+
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
8+
59
// Use, modification and distribution is subject to the Boost Software License,
610
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
711
// http://www.boost.org/LICENSE_1_0.txt)
@@ -12,7 +16,8 @@
1216

1317
#include <cstddef>
1418

15-
#include <boost/range.hpp>
19+
#include <boost/range/size.hpp>
20+
#include <boost/range/value_type.hpp>
1621

1722
#include <boost/geometry/core/assert.hpp>
1823
#include <boost/geometry/core/coordinate_type.hpp>

include/boost/geometry/algorithms/detail/buffer/get_piece_turns.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// Copyright (c) 2012-2014 Barend Gehrels, Amsterdam, the Netherlands.
44
// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland.
55

6-
// This file was modified by Oracle on 2017, 2018.
7-
// Modifications copyright (c) 2017-2018 Oracle and/or its affiliates.
6+
// This file was modified by Oracle on 2017-2020.
7+
// Modifications copyright (c) 2017-2020 Oracle and/or its affiliates.
88
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
99

1010
// Use, modification and distribution is subject to the Boost Software License,
@@ -15,7 +15,9 @@
1515
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_BUFFER_GET_PIECE_TURNS_HPP
1616

1717
#include <boost/core/ignore_unused.hpp>
18-
#include <boost/range.hpp>
18+
#include <boost/range/begin.hpp>
19+
#include <boost/range/end.hpp>
20+
#include <boost/range/value_type.hpp>
1921

2022
#include <boost/geometry/core/assert.hpp>
2123
#include <boost/geometry/algorithms/equals.hpp>

include/boost/geometry/algorithms/detail/calculate_sum.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
99
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
1010

11-
// This file was modified by Oracle on 2016.
12-
// Modifications copyright (c) 2016 Oracle and/or its affiliates.
11+
// This file was modified by Oracle on 2016-2020.
12+
// Modifications copyright (c) 2016-2020 Oracle and/or its affiliates.
1313
// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
14+
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
1415

1516
// Use, modification and distribution is subject to the Boost Software License,
1617
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
@@ -19,7 +20,8 @@
1920
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_CALCULATE_SUM_HPP
2021
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_CALCULATE_SUM_HPP
2122

22-
#include <boost/range.hpp>
23+
#include <boost/range/begin.hpp>
24+
#include <boost/range/end.hpp>
2325

2426
namespace boost { namespace geometry
2527
{

include/boost/geometry/algorithms/detail/closest_feature/point_to_range.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Boost.Geometry (aka GGL, Generic Geometry Library)
22

3-
// Copyright (c) 2014, Oracle and/or its affiliates.
4-
3+
// Copyright (c) 2014-2020, Oracle and/or its affiliates.
54
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
5+
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
66

77
// Licensed under the Boost Software License version 1.0.
88
// http://www.boost.org/users/license.html
@@ -12,7 +12,9 @@
1212

1313
#include <utility>
1414

15-
#include <boost/range.hpp>
15+
#include <boost/range/begin.hpp>
16+
#include <boost/range/end.hpp>
17+
#include <boost/range/size.hpp>
1618

1719
#include <boost/geometry/core/assert.hpp>
1820
#include <boost/geometry/core/closure.hpp>

include/boost/geometry/algorithms/detail/counting.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
66
// Copyright (c) 2014 Adam Wulkiewicz, Lodz, Poland.
77

8-
// This file was modified by Oracle on 2014.
9-
// Modifications copyright (c) 2014, Oracle and/or its affiliates.
10-
8+
// This file was modified by Oracle on 2014-2020.
9+
// Modifications copyright (c) 2014-2020, Oracle and/or its affiliates.
1110
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
11+
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
1212

1313
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
1414
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
@@ -22,7 +22,8 @@
2222

2323
#include <cstddef>
2424

25-
#include <boost/range.hpp>
25+
#include <boost/range/begin.hpp>
26+
#include <boost/range/end.hpp>
2627

2728
#include <boost/geometry/core/exterior_ring.hpp>
2829
#include <boost/geometry/core/interior_rings.hpp>

include/boost/geometry/algorithms/detail/disjoint/linear_areal.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
66
// Copyright (c) 2013-2014 Adam Wulkiewicz, Lodz, Poland.
77

8-
// This file was modified by Oracle on 2013-2018.
9-
// Modifications copyright (c) 2013-2018, Oracle and/or its affiliates.
8+
// This file was modified by Oracle on 2013-2020.
9+
// Modifications copyright (c) 2013-2020, Oracle and/or its affiliates.
1010

1111
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
1212
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
@@ -23,7 +23,9 @@
2323

2424
#include <iterator>
2525

26-
#include <boost/range.hpp>
26+
#include <boost/range/begin.hpp>
27+
#include <boost/range/end.hpp>
28+
#include <boost/range/value_type.hpp>
2729

2830
#include <boost/geometry/core/closure.hpp>
2931
#include <boost/geometry/core/point_type.hpp>

include/boost/geometry/algorithms/detail/disjoint/linear_linear.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
66
// Copyright (c) 2013-2014 Adam Wulkiewicz, Lodz, Poland.
77

8-
// This file was modified by Oracle on 2013-2017.
9-
// Modifications copyright (c) 2013-2017, Oracle and/or its affiliates.
8+
// This file was modified by Oracle on 2013-2020.
9+
// Modifications copyright (c) 2013-2020, Oracle and/or its affiliates.
1010

1111
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
1212
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
@@ -24,9 +24,6 @@
2424
#include <cstddef>
2525
#include <deque>
2626

27-
#include <boost/range.hpp>
28-
#include <boost/geometry/util/range.hpp>
29-
3027
#include <boost/geometry/core/point_type.hpp>
3128
#include <boost/geometry/core/tag.hpp>
3229
#include <boost/geometry/core/tags.hpp>

include/boost/geometry/algorithms/detail/disjoint/multirange_geometry.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Boost.Geometry (aka GGL, Generic Geometry Library)
22

3-
// Copyright (c) 2014-2017, Oracle and/or its affiliates.
3+
// Copyright (c) 2014-2020, Oracle and/or its affiliates.
44

55
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
66
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
@@ -11,7 +11,10 @@
1111
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISJOINT_MULTIRANGE_GEOMETRY_HPP
1212
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISJOINT_MULTIRANGE_GEOMETRY_HPP
1313

14-
#include <boost/range.hpp>
14+
15+
#include <boost/range/begin.hpp>
16+
#include <boost/range/end.hpp>
17+
#include <boost/range/value_type.hpp>
1518

1619
#include <boost/geometry/algorithms/detail/check_iterator_range.hpp>
1720
#include <boost/geometry/algorithms/dispatch/disjoint.hpp>

include/boost/geometry/algorithms/detail/distance/geometry_to_segment_or_box.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Boost.Geometry (aka GGL, Generic Geometry Library)
22

3-
// Copyright (c) 2014, 2019, Oracle and/or its affiliates.
3+
// Copyright (c) 2014-2020, Oracle and/or its affiliates.
44

55
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
66
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
@@ -13,7 +13,8 @@
1313

1414
#include <iterator>
1515

16-
#include <boost/range.hpp>
16+
#include <boost/range/begin.hpp>
17+
#include <boost/range/end.hpp>
1718

1819
#include <boost/geometry/core/point_type.hpp>
1920
#include <boost/geometry/core/tag.hpp>

include/boost/geometry/algorithms/detail/distance/multipoint_to_geometry.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISTANCE_MULTIPOINT_TO_GEOMETRY_HPP
1212
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_DISTANCE_MULTIPOINT_TO_GEOMETRY_HPP
1313

14-
#include <boost/range.hpp>
14+
#include <boost/range/begin.hpp>
15+
#include <boost/range/end.hpp>
16+
#include <boost/range/size.hpp>
1517

1618
#include <boost/geometry/core/point_type.hpp>
1719
#include <boost/geometry/core/tags.hpp>

include/boost/geometry/algorithms/detail/distance/point_to_geometry.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
#include <type_traits>
2626

2727
#include <boost/core/ignore_unused.hpp>
28-
#include <boost/range.hpp>
28+
#include <boost/range/begin.hpp>
29+
#include <boost/range/end.hpp>
30+
#include <boost/range/size.hpp>
31+
#include <boost/range/value_type.hpp>
2932

3033
#include <boost/geometry/core/closure.hpp>
3134
#include <boost/geometry/core/point_type.hpp>

include/boost/geometry/algorithms/detail/envelope/range_of_boxes.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
#include <type_traits>
1919
#include <vector>
2020

21-
#include <boost/range.hpp>
21+
#include <boost/range/begin.hpp>
22+
#include <boost/range/empty.hpp>
23+
#include <boost/range/end.hpp>
24+
#include <boost/range/value_type.hpp>
2225

2326
#include <boost/geometry/algorithms/detail/convert_point_to_point.hpp>
2427
#include <boost/geometry/algorithms/detail/max_interval_gap.hpp>

0 commit comments

Comments
 (0)