]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/geometry/core/config.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / core / config.hpp
CommitLineData
92f5a8d4
TL
1// Boost.Geometry
2
1e59de90 3// Copyright (c) 2019-2021 Barend Gehrels, Amsterdam, the Netherlands.
f67539c2
TL
4
5// Copyright (c) 2018-2020 Oracle and/or its affiliates.
92f5a8d4
TL
6// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7
8// Use, modification and distribution is subject to the Boost Software License,
9// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
10// http://www.boost.org/LICENSE_1_0.txt)
11
12#ifndef BOOST_GEOMETRY_CORE_CONFIG_HPP
13#define BOOST_GEOMETRY_CORE_CONFIG_HPP
14
15#include <boost/config.hpp>
1e59de90
TL
16#include <boost/config/pragma_message.hpp>
17
18// If no define is specified, it uses BOOST_GEOMETRY_NO_ROBUSTNESS, which means: no rescaling.
19// (Rescaling was an earlier approach to fix robustness issues.)
20// However, if BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE is specified, it flips the default.
21#if !defined(BOOST_GEOMETRY_NO_ROBUSTNESS) && !defined(BOOST_GEOMETRY_USE_RESCALING)
22 #if defined(BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE)
23 #define BOOST_GEOMETRY_USE_RESCALING
24 #else
25 #define BOOST_GEOMETRY_NO_ROBUSTNESS
26 #endif
27#endif
28
29#if defined(BOOST_GEOMETRY_USE_RESCALING) && ! defined(BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE)
30 BOOST_PRAGMA_MESSAGE("Rescaling is deprecated and its functionality will be removed in Boost 1.82")
31#endif
32
33#if defined(BOOST_GEOMETRY_USE_RESCALING) && defined(BOOST_GEOMETRY_NO_ROBUSTNESS)
34 #error "Define either BOOST_GEOMETRY_NO_ROBUSTNESS (default) or BOOST_GEOMETRY_USE_RESCALING"
35#endif
92f5a8d4
TL
36
37// NOTE: workaround for VC++ 12 (aka 2013): cannot specify explicit initializer for arrays
38#if !defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX) && (!defined(_MSC_VER) || (_MSC_VER >= 1900))
39#define BOOST_GEOMETRY_CXX11_ARRAY_UNIFIED_INITIALIZATION
40#endif
41
f67539c2
TL
42#if !defined(BOOST_NO_CXX11_HDR_TUPLE) && !defined(BOOST_NO_VARIADIC_TEMPLATES)
43#define BOOST_GEOMETRY_CXX11_TUPLE
44#endif
45
92f5a8d4 46#endif // BOOST_GEOMETRY_CORE_CONFIG_HPP