From 5fad5e3b7db2f980c13fdf4b07aaad7876f4c364 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Mon, 15 Dec 2014 23:27:43 +0100 Subject: [PATCH] [algorithms] Replace A and B BOOST_VARIANT_ENUM_PARAMS parameters with T1 and T2 respectively. --- include/boost/geometry/algorithms/assign.hpp | 8 ++++---- include/boost/geometry/algorithms/crosses.hpp | 8 ++++---- .../detail/comparable_distance/interface.hpp | 20 +++++++++---------- .../algorithms/detail/distance/interface.hpp | 20 +++++++++---------- .../detail/intersection/interface.hpp | 8 ++++---- 5 files changed, 32 insertions(+), 32 deletions(-) diff --git a/include/boost/geometry/algorithms/assign.hpp b/include/boost/geometry/algorithms/assign.hpp index 0596acdfa..01604a5db 100644 --- a/include/boost/geometry/algorithms/assign.hpp +++ b/include/boost/geometry/algorithms/assign.hpp @@ -319,8 +319,8 @@ struct assign > }; -template -struct assign, variant > +template +struct assign, variant > { struct visitor: static_visitor { @@ -339,8 +339,8 @@ struct assign, variant& geometry1, - variant const& geometry2) + apply(variant& geometry1, + variant const& geometry2) { return apply_visitor(visitor(), geometry1, geometry2); } diff --git a/include/boost/geometry/algorithms/crosses.hpp b/include/boost/geometry/algorithms/crosses.hpp index 53f911308..43d2c09f5 100644 --- a/include/boost/geometry/algorithms/crosses.hpp +++ b/include/boost/geometry/algorithms/crosses.hpp @@ -144,8 +144,8 @@ namespace resolve_variant }; - template - struct crosses, variant > + template + struct crosses, variant > { struct visitor: static_visitor { @@ -165,8 +165,8 @@ namespace resolve_variant static inline bool apply( - const variant& geometry1, - const variant& geometry2) + const variant& geometry1, + const variant& geometry2) { return apply_visitor(visitor(), geometry1, geometry2); } diff --git a/include/boost/geometry/algorithms/detail/comparable_distance/interface.hpp b/include/boost/geometry/algorithms/detail/comparable_distance/interface.hpp index 1a57c8f4b..c443a54e5 100644 --- a/include/boost/geometry/algorithms/detail/comparable_distance/interface.hpp +++ b/include/boost/geometry/algorithms/detail/comparable_distance/interface.hpp @@ -232,13 +232,13 @@ struct comparable_distance template < - BOOST_VARIANT_ENUM_PARAMS(typename A), - BOOST_VARIANT_ENUM_PARAMS(typename B) + BOOST_VARIANT_ENUM_PARAMS(typename T1), + BOOST_VARIANT_ENUM_PARAMS(typename T2) > struct comparable_distance < - boost::variant, - boost::variant + boost::variant, + boost::variant > { template @@ -246,8 +246,8 @@ struct comparable_distance < typename comparable_distance_result < - boost::variant, - boost::variant, + boost::variant, + boost::variant, Strategy >::type > @@ -279,12 +279,12 @@ struct comparable_distance template static inline typename comparable_distance_result < - boost::variant, - boost::variant, + boost::variant, + boost::variant, Strategy >::type - apply(boost::variant const& geometry1, - boost::variant const& geometry2, + apply(boost::variant const& geometry1, + boost::variant const& geometry2, Strategy const& strategy) { return apply_visitor(visitor(strategy), geometry1, geometry2); diff --git a/include/boost/geometry/algorithms/detail/distance/interface.hpp b/include/boost/geometry/algorithms/detail/distance/interface.hpp index 9b377f524..fa8cbd69e 100644 --- a/include/boost/geometry/algorithms/detail/distance/interface.hpp +++ b/include/boost/geometry/algorithms/detail/distance/interface.hpp @@ -260,13 +260,13 @@ struct distance > template < - BOOST_VARIANT_ENUM_PARAMS(typename A), - BOOST_VARIANT_ENUM_PARAMS(typename B) + BOOST_VARIANT_ENUM_PARAMS(typename T1), + BOOST_VARIANT_ENUM_PARAMS(typename T2) > struct distance < - boost::variant, - boost::variant + boost::variant, + boost::variant > { template @@ -274,8 +274,8 @@ struct distance < typename distance_result < - boost::variant, - boost::variant, + boost::variant, + boost::variant, Strategy >::type > @@ -304,12 +304,12 @@ struct distance template static inline typename distance_result < - boost::variant, - boost::variant, + boost::variant, + boost::variant, Strategy >::type - apply(boost::variant const& geometry1, - boost::variant const& geometry2, + apply(boost::variant const& geometry1, + boost::variant const& geometry2, Strategy const& strategy) { return apply_visitor(visitor(strategy), geometry1, geometry2); diff --git a/include/boost/geometry/algorithms/detail/intersection/interface.hpp b/include/boost/geometry/algorithms/detail/intersection/interface.hpp index 323ab7c85..d57535e61 100644 --- a/include/boost/geometry/algorithms/detail/intersection/interface.hpp +++ b/include/boost/geometry/algorithms/detail/intersection/interface.hpp @@ -223,8 +223,8 @@ struct intersection > }; -template -struct intersection, variant > +template +struct intersection, variant > { template struct visitor: static_visitor @@ -255,8 +255,8 @@ struct intersection, variant static inline bool apply( - const variant& geometry1, - const variant& geometry2, + const variant& geometry1, + const variant& geometry2, GeometryOut& geometry_out) { return apply_visitor(visitor(geometry_out), geometry1, geometry2);