// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
-// This file was modified by Oracle on 2013, 2014, 2017.
-// Modifications copyright (c) 2013-2017 Oracle and/or its affiliates.
+// This file was modified by Oracle on 2013, 2014, 2017, 2019.
+// Modifications copyright (c) 2013-2019 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_COVERED_BY_IMPLEMENTATION_HPP
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_COVERED_BY_IMPLEMENTATION_HPP
-
#include <cstddef>
-
+#include <boost/core/ignore_unused.hpp>
#include <boost/geometry/algorithms/detail/covered_by/interface.hpp>
#include <boost/geometry/algorithms/detail/within/implementation.hpp>
template <typename Geometry1, typename Geometry2, typename Strategy>
static inline bool apply(Geometry1 const& geometry1, Geometry2 const& geometry2, Strategy const& strategy)
{
- return detail::within::point_in_geometry(geometry1, geometry2, strategy) >= 0;
+ return detail::within::covered_by_point_geometry(geometry1, geometry2, strategy);
}
};
template <typename Strategy>
static inline bool apply(Point const& point, Box const& box, Strategy const& strategy)
{
- ::boost::ignore_unused_variable_warning(strategy);
+ ::boost::ignore_unused(strategy);
return strategy.apply(point, box);
}
};
static inline bool apply(Box1 const& box1, Box2 const& box2, Strategy const& strategy)
{
assert_dimension_equal<Box1, Box2>();
- ::boost::ignore_unused_variable_warning(strategy);
+ ::boost::ignore_unused(strategy);
return strategy.apply(box1, box2);
}
};