1 // Boost.Geometry Index
5 // Copyright (c) 2019, Oracle and/or its affiliates.
6 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
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)
12 #ifndef BOOST_GEOMETRY_STRATEGIES_INDEX_HPP
13 #define BOOST_GEOMETRY_STRATEGIES_INDEX_HPP
16 #include <boost/geometry/core/cs.hpp>
18 #include <boost/geometry/strategies/default_strategy.hpp>
21 namespace boost { namespace geometry { namespace strategy { namespace index
30 typename CSTag = typename geometry::cs_tag<Geometry>::type
32 struct default_strategy
34 /*BOOST_MPL_ASSERT_MSG
36 false, NOT_IMPLEMENTED_FOR_THESE_TYPES
40 typedef geometry::default_strategy type;
45 // Utility to get index strategy from other strategy
46 // In the final version this utility will probably replaced with some other mechanism
47 // The issue is cross-dependencies between strategies
48 template <typename Strategy>
51 /*BOOST_MPL_ASSERT_MSG
53 false, NOT_IMPLEMENTED_FOR_THESE_TYPES
57 typedef geometry::default_strategy type;
59 static inline type get(Strategy const&)
66 } // namespace services
69 }}}} // namespace boost::geometry::strategy::index
71 #endif // BOOST_GEOMETRY_STRATEGIES_INDEX_HPP