mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-12 14:01:47 +00:00
[algorithms][turns] guard include with the BOOST_GEOMETRY_DEBUG_TURN
macro; polish code a bit
This commit is contained in:
parent
17ed15b44c
commit
b58dfe57c8
@ -10,11 +10,14 @@
|
|||||||
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_TURNS_DEBUG_TURN_HPP
|
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_TURNS_DEBUG_TURN_HPP
|
||||||
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_TURNS_DEBUG_TURN_HPP
|
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_TURNS_DEBUG_TURN_HPP
|
||||||
|
|
||||||
|
#ifdef BOOST_GEOMETRY_DEBUG_TURNS
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <boost/geometry/io/wkt/write.hpp>
|
#include <boost/geometry/io/wkt/write.hpp>
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
#include <boost/algorithm/string/predicate.hpp>
|
||||||
|
#endif // BOOST_GEOMETRY_DEBUG_TURNS
|
||||||
|
|
||||||
|
|
||||||
namespace boost { namespace geometry
|
namespace boost { namespace geometry
|
||||||
{
|
{
|
||||||
@ -24,8 +27,8 @@ namespace detail { namespace turns
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
template <typename Turn, typename Operation>
|
|
||||||
#ifdef BOOST_GEOMETRY_DEBUG_TURNS
|
#ifdef BOOST_GEOMETRY_DEBUG_TURNS
|
||||||
|
template <typename Turn, typename Operation>
|
||||||
inline void debug_turn(Turn const& turn, Operation op,
|
inline void debug_turn(Turn const& turn, Operation op,
|
||||||
std::string const& header)
|
std::string const& header)
|
||||||
{
|
{
|
||||||
@ -44,6 +47,7 @@ inline void debug_turn(Turn const& turn, Operation op,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
template <typename Turn, typename Operation>
|
||||||
inline void debug_turn(Turn const& , Operation, const char*)
|
inline void debug_turn(Turn const& , Operation, const char*)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user