constexpr.hpp 642 B

123456789101112131415161718192021222324252627
  1. // Boost.Geometry
  2. // Copyright (c) 2023 Adam Wulkiewicz, Lodz, Poland.
  3. // Use, modification and distribution is subject to the Boost Software License,
  4. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef BOOST_GEOMETRY_UTIL_CONSTEXPR_HPP
  7. #define BOOST_GEOMETRY_UTIL_CONSTEXPR_HPP
  8. #include <boost/geometry/util/condition.hpp>
  9. #ifndef BOOST_NO_CXX17_IF_CONSTEXPR
  10. #define BOOST_GEOMETRY_CONSTEXPR(CONDITION) constexpr (CONDITION)
  11. #else
  12. #define BOOST_GEOMETRY_CONSTEXPR(CONDITION) (BOOST_GEOMETRY_CONDITION(CONDITION))
  13. #endif
  14. #endif // BOOST_GEOMETRY_UTIL_CONSTEXPR_HPP