comparison DEPENDENCIES/generic/include/boost/geometry/strategies/side_info.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
14 #ifndef BOOST_GEOMETRY_STRATEGIES_SIDE_INFO_HPP 14 #ifndef BOOST_GEOMETRY_STRATEGIES_SIDE_INFO_HPP
15 #define BOOST_GEOMETRY_STRATEGIES_SIDE_INFO_HPP 15 #define BOOST_GEOMETRY_STRATEGIES_SIDE_INFO_HPP
16 16
17 #include <cmath> 17 #include <cmath>
18 #include <utility> 18 #include <utility>
19 #ifdef BOOST_GEOMETRY_DEBUG_INTERSECTION 19
20 #include <iostream> 20 #if defined(BOOST_GEOMETRY_DEBUG_INTERSECTION) || defined(BOOST_GEOMETRY_DEBUG_ROBUSTNESS)
21 # include <iostream>
21 #endif 22 #endif
22 23
23 namespace boost { namespace geometry 24 namespace boost { namespace geometry
24 { 25 {
25 26
26 // Silence warning C4127: conditional expression is constant 27 // Silence warning C4127: conditional expression is constant
27 #if defined(_MSC_VER) 28 #if defined(_MSC_VER)
28 #pragma warning(push) 29 #pragma warning(push)
29 #pragma warning(disable : 4127) 30 #pragma warning(disable : 4127)
30 #endif 31 #endif
31 32
32 /*! 33 /*!
33 \brief Class side_info: small class wrapping for sides (-1,0,1) 34 \brief Class side_info: small class wrapping for sides (-1,0,1)
34 */ 35 */
143 inline int zero_index() const 144 inline int zero_index() const
144 { 145 {
145 return sides[Which].first == 0 ? 0 : 1; 146 return sides[Which].first == 0 ? 0 : 1;
146 } 147 }
147 148
148 #ifdef BOOST_GEOMETRY_DEBUG_INTERSECTION 149 #if defined(BOOST_GEOMETRY_DEBUG_INTERSECTION) || defined(BOOST_GEOMETRY_DEBUG_ROBUSTNESS)
149 inline void debug() const 150 inline void debug() const
150 { 151 {
151 std::cout << sides[0].first << " " 152 std::cout << sides[0].first << " "
152 << sides[0].second << " " 153 << sides[0].second << " "
153 << sides[1].first << " " 154 << sides[1].first << " "
154 << sides[1].second 155 << sides[1].second
155 << std::endl; 156 << std::endl;
156 } 157 }
157 #endif 158 #endif
158 159
159 inline void reverse() 160 inline void reverse()
165 std::pair<int, int> sides[2]; 166 std::pair<int, int> sides[2];
166 167
167 }; 168 };
168 169
169 #if defined(_MSC_VER) 170 #if defined(_MSC_VER)
170 #pragma warning(pop) 171 #pragma warning(pop)
171 #endif 172 #endif
172 173
173 }} // namespace boost::geometry 174 }} // namespace boost::geometry
174 175
175 176