From 0b422e56a693def8ef08f0b48bc49b656a1d6fdf Mon Sep 17 00:00:00 2001 From: Andrii Sydorchuk Date: Wed, 20 Mar 2013 20:36:33 +0000 Subject: [PATCH] Polygon: fixing ticket #8197 (range/algorithm conflicts with polygon). [SVN r83507] --- include/boost/polygon/detail/polygon_45_touch.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/polygon/detail/polygon_45_touch.hpp b/include/boost/polygon/detail/polygon_45_touch.hpp index 5da606b..6307b4a 100644 --- a/include/boost/polygon/detail/polygon_45_touch.hpp +++ b/include/boost/polygon/detail/polygon_45_touch.hpp @@ -64,7 +64,9 @@ namespace boost { namespace polygon{ //inline CountTouch& operator=(int count) { counts[0] = counts[1] = count; return *this; } inline CountTouch& operator=(const CountTouch& count) { counts = count.counts; return *this; } inline int& operator[](int index) { - std::vector >::iterator itr = lower_bound(counts.begin(), counts.end(), std::make_pair(index, int(0))); + std::vector >::iterator itr = + std::lower_bound(counts.begin(), counts.end(), + std::make_pair(index, int(0))); if(itr != counts.end() && itr->first == index) { return itr->second; }