summaryrefslogtreecommitdiff
path: root/boost/geometry/algorithms/crosses.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/algorithms/crosses.hpp')
-rw-r--r--boost/geometry/algorithms/crosses.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/boost/geometry/algorithms/crosses.hpp b/boost/geometry/algorithms/crosses.hpp
index 91ed3e0..cec4931 100644
--- a/boost/geometry/algorithms/crosses.hpp
+++ b/boost/geometry/algorithms/crosses.hpp
@@ -21,6 +21,9 @@
#define BOOST_GEOMETRY_ALGORITHMS_CROSSES_HPP
#include <cstddef>
+
+#include <boost/variant/apply_visitor.hpp>
+#include <boost/variant/static_visitor.hpp>
#include <boost/variant/variant_fwd.hpp>
#include <boost/geometry/core/access.hpp>
@@ -141,8 +144,8 @@ namespace resolve_variant
};
- template <BOOST_VARIANT_ENUM_PARAMS(typename A), BOOST_VARIANT_ENUM_PARAMS(typename B)>
- struct crosses<variant<BOOST_VARIANT_ENUM_PARAMS(A)>, variant<BOOST_VARIANT_ENUM_PARAMS(B)> >
+ template <BOOST_VARIANT_ENUM_PARAMS(typename T1), BOOST_VARIANT_ENUM_PARAMS(typename T2)>
+ struct crosses<variant<BOOST_VARIANT_ENUM_PARAMS(T1)>, variant<BOOST_VARIANT_ENUM_PARAMS(T2)> >
{
struct visitor: static_visitor<bool>
{
@@ -162,8 +165,8 @@ namespace resolve_variant
static inline bool
apply(
- const variant<BOOST_VARIANT_ENUM_PARAMS(A)>& geometry1,
- const variant<BOOST_VARIANT_ENUM_PARAMS(B)>& geometry2)
+ const variant<BOOST_VARIANT_ENUM_PARAMS(T1)>& geometry1,
+ const variant<BOOST_VARIANT_ENUM_PARAMS(T2)>& geometry2)
{
return apply_visitor(visitor(), geometry1, geometry2);
}