//
// Copyright (c) 2011-2017 Adam Wulkiewicz, Lodz, Poland.
//
-// This file was modified by Oracle on 2019.
-// Modifications copyright (c) 2019 Oracle and/or its affiliates.
+// This file was modified by Oracle on 2019-2020.
+// Modifications copyright (c) 2019-2020 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
//
// Use, modification and distribution is subject to the Boost Software License,
#include <limits>
-#include <boost/mpl/assert.hpp>
+#include <boost/geometry/core/static_assert.hpp>
#include <boost/geometry/index/detail/exception.hpp>
size_t MinElements = detail::default_min_elements_s<MaxElements>::value>
struct linear
{
- BOOST_MPL_ASSERT_MSG((0 < MinElements && 2*MinElements <= MaxElements+1),
- INVALID_STATIC_MIN_MAX_PARAMETERS, (linear));
+ BOOST_GEOMETRY_STATIC_ASSERT((0 < MinElements && 2*MinElements <= MaxElements+1),
+ "Invalid MaxElements or MinElements.",
+ std::integer_sequence<size_t, MaxElements, MinElements>);
static const size_t max_elements = MaxElements;
static const size_t min_elements = MinElements;
size_t MinElements = detail::default_min_elements_s<MaxElements>::value>
struct quadratic
{
- BOOST_MPL_ASSERT_MSG((0 < MinElements && 2*MinElements <= MaxElements+1),
- INVALID_STATIC_MIN_MAX_PARAMETERS, (quadratic));
+ BOOST_GEOMETRY_STATIC_ASSERT((0 < MinElements && 2*MinElements <= MaxElements+1),
+ "Invalid MaxElements or MinElements.",
+ std::integer_sequence<size_t, MaxElements, MinElements>);
static const size_t max_elements = MaxElements;
static const size_t min_elements = MinElements;
size_t OverlapCostThreshold = 32>
struct rstar
{
- BOOST_MPL_ASSERT_MSG((0 < MinElements && 2*MinElements <= MaxElements+1),
- INVALID_STATIC_MIN_MAX_PARAMETERS, (rstar));
+ BOOST_GEOMETRY_STATIC_ASSERT((0 < MinElements && 2*MinElements <= MaxElements+1),
+ "Invalid MaxElements or MinElements.",
+ std::integer_sequence<size_t, MaxElements, MinElements>);
static const size_t max_elements = MaxElements;
static const size_t min_elements = MinElements;