config.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Boost.Geometry
  2. // Copyright (c) 2019 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2018-2020 Oracle and/or its affiliates.
  4. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  5. // Use, modification and distribution is subject to the Boost Software License,
  6. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. #ifndef BOOST_GEOMETRY_CORE_CONFIG_HPP
  9. #define BOOST_GEOMETRY_CORE_CONFIG_HPP
  10. #include <boost/config.hpp>
  11. // NOTE: workaround for VC++ 12 (aka 2013): cannot specify explicit initializer for arrays
  12. #if !defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX) && (!defined(_MSC_VER) || (_MSC_VER >= 1900))
  13. #define BOOST_GEOMETRY_CXX11_ARRAY_UNIFIED_INITIALIZATION
  14. #endif
  15. #if !defined(BOOST_NO_CXX11_HDR_TUPLE) && !defined(BOOST_NO_VARIADIC_TEMPLATES)
  16. #define BOOST_GEOMETRY_CXX11_TUPLE
  17. #endif
  18. // Defining this selects Kramer rule for segment-intersection
  19. // That is default behaviour.
  20. #define BOOST_GEOMETRY_USE_KRAMER_RULE
  21. // Rescaling is turned on, unless NO_ROBUSTNESS is defined
  22. // In future versions of Boost.Geometry, it will be turned off by default
  23. #if ! defined(BOOST_GEOMETRY_NO_ROBUSTNESS)
  24. #define BOOST_GEOMETRY_USE_RESCALING
  25. #endif
  26. #endif // BOOST_GEOMETRY_CORE_CONFIG_HPP