diff options
Diffstat (limited to 'boost/geometry/algorithms/detail/ring_identifier.hpp')
-rw-r--r-- | boost/geometry/algorithms/detail/ring_identifier.hpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/boost/geometry/algorithms/detail/ring_identifier.hpp b/boost/geometry/algorithms/detail/ring_identifier.hpp index 9209ee0304..bc3fe1fef3 100644 --- a/boost/geometry/algorithms/detail/ring_identifier.hpp +++ b/boost/geometry/algorithms/detail/ring_identifier.hpp @@ -10,6 +10,14 @@ #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_RING_IDENTIFIER_HPP +#if defined(BOOST_GEOMETRY_DEBUG_IDENTIFIER) +#include <iostream> +#endif + + +#include <boost/geometry/algorithms/detail/signed_index_type.hpp> + + namespace boost { namespace geometry { @@ -24,7 +32,9 @@ struct ring_identifier , ring_index(-1) {} - inline ring_identifier(int src, int mul, int rin) + inline ring_identifier(signed_index_type src, + signed_index_type mul, + signed_index_type rin) : source_index(src) , multi_index(mul) , ring_index(rin) @@ -58,9 +68,9 @@ struct ring_identifier #endif - int source_index; - int multi_index; - int ring_index; + signed_index_type source_index; + signed_index_type multi_index; + signed_index_type ring_index; }; |