Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84574 - trunk/boost/geometry/strategies
From: mateusz_at_[hidden]
Date: 2013-05-31 09:53:22


Author: mloskot
Date: 2013-05-31 09:53:22 EDT (Fri, 31 May 2013)
New Revision: 84574
URL: http://svn.boost.org/trac/boost/changeset/84574

Log:
[geometry]
Wrap debug facility with #ifdef BOOST_GEOMETRY_DEBUG_INTERSECTION.
Include missing <cmath>.
Text files modified:
   trunk/boost/geometry/strategies/side_info.hpp | 10 ++++++----
   1 files changed, 6 insertions(+), 4 deletions(-)

Modified: trunk/boost/geometry/strategies/side_info.hpp
==============================================================================
--- trunk/boost/geometry/strategies/side_info.hpp (original)
+++ trunk/boost/geometry/strategies/side_info.hpp 2013-05-31 09:53:22 EDT (Fri, 31 May 2013)
@@ -14,9 +14,11 @@
 #ifndef BOOST_GEOMETRY_STRATEGIES_SIDE_INFO_HPP
 #define BOOST_GEOMETRY_STRATEGIES_SIDE_INFO_HPP
 
-
+#include <cmath>
 #include <utility>
-
+#ifdef BOOST_GEOMETRY_DEBUG_INTERSECTION
+#include <iostream>
+#endif
 
 namespace boost { namespace geometry
 {
@@ -143,7 +145,7 @@
         return sides[Which].first == 0 ? 0 : 1;
     }
 
-
+#ifdef BOOST_GEOMETRY_DEBUG_INTERSECTION
     inline void debug() const
     {
         std::cout << sides[0].first << " "
@@ -152,7 +154,7 @@
             << sides[1].second
             << std::endl;
     }
-
+#endif
 
     inline void reverse()
     {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk