From b58dfe57c8de655facb8f1b79e89e207e1bf84ec Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Thu, 19 Jun 2014 22:15:26 +0300 Subject: [PATCH] [algorithms][turns] guard include with the BOOST_GEOMETRY_DEBUG_TURN macro; polish code a bit --- .../boost/geometry/algorithms/detail/turns/debug_turn.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/geometry/algorithms/detail/turns/debug_turn.hpp b/include/boost/geometry/algorithms/detail/turns/debug_turn.hpp index d34aa04db..910324c5e 100644 --- a/include/boost/geometry/algorithms/detail/turns/debug_turn.hpp +++ b/include/boost/geometry/algorithms/detail/turns/debug_turn.hpp @@ -10,11 +10,14 @@ #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_TURNS_DEBUG_TURN_HPP #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_TURNS_DEBUG_TURN_HPP +#ifdef BOOST_GEOMETRY_DEBUG_TURNS #include #include #include #include +#endif // BOOST_GEOMETRY_DEBUG_TURNS + namespace boost { namespace geometry { @@ -24,8 +27,8 @@ namespace detail { namespace turns { -template #ifdef BOOST_GEOMETRY_DEBUG_TURNS +template inline void debug_turn(Turn const& turn, Operation op, std::string const& header) { @@ -44,6 +47,7 @@ inline void debug_turn(Turn const& turn, Operation op, } } #else +template inline void debug_turn(Turn const& , Operation, const char*) { }