| 1 | diff --git a/boost/polygon/polygon_45_set_data.hpp b/boost/polygon/polygon_45_set_data.hpp
|
|---|
| 2 | index e541ee5..d3f5e75 100644
|
|---|
| 3 | --- a/boost/polygon/polygon_45_set_data.hpp
|
|---|
| 4 | +++ b/boost/polygon/polygon_45_set_data.hpp
|
|---|
| 5 | @@ -1455,7 +1455,7 @@ namespace boost { namespace polygon{
|
|---|
| 6 |
|
|---|
| 7 | template <typename cT, typename iT>
|
|---|
| 8 | void get_error_rects_shell(cT& posE, cT& negE, iT beginr, iT endr) {
|
|---|
| 9 | - typedef typename iT::value_type Point;
|
|---|
| 10 | + typedef typename std::iterator_traits<iT>::value_type Point;
|
|---|
| 11 | typedef typename point_traits<Point>::coordinate_type Unit;
|
|---|
| 12 | typedef typename coordinate_traits<Unit>::area_type area_type;
|
|---|
| 13 | Point pt1, pt2, pt3;
|
|---|
| 14 | diff --git a/boost/polygon/polygon_traits.hpp b/boost/polygon/polygon_traits.hpp
|
|---|
| 15 | index 041321d..b1f47fd 100644
|
|---|
| 16 | --- a/boost/polygon/polygon_traits.hpp
|
|---|
| 17 | +++ b/boost/polygon/polygon_traits.hpp
|
|---|
| 18 | @@ -1036,7 +1036,7 @@ namespace boost { namespace polygon{
|
|---|
| 19 |
|
|---|
| 20 | template <typename iT>
|
|---|
| 21 | bool point_sequence_is_45(iT itr, iT itr_end) {
|
|---|
| 22 | - typedef typename iT::value_type Point;
|
|---|
| 23 | + typedef typename std::iterator_traits<iT>::value_type Point;
|
|---|
| 24 | typedef typename point_traits<Point>::coordinate_type Unit;
|
|---|
| 25 | if(itr == itr_end) return true;
|
|---|
| 26 | Point firstPt = *itr;
|
|---|