From 3de87192fa2fd53badc0833b2314875d1186bcc1 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Sun, 15 Apr 2012 01:46:20 +0000 Subject: [PATCH] size_t changed to Container::size_type in translator::index [SVN r77982] --- .../boost/geometry/extensions/index/translator/index.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/geometry/extensions/index/translator/index.hpp b/include/boost/geometry/extensions/index/translator/index.hpp index 242073417..73116c564 100644 --- a/include/boost/geometry/extensions/index/translator/index.hpp +++ b/include/boost/geometry/extensions/index/translator/index.hpp @@ -17,19 +17,21 @@ namespace boost { namespace geometry { namespace index { namespace translator { template class index { + typedef typename Container::size_type size_type; + public: typedef typename detail::extract_indexable ::type const& result_type; explicit index(Container const& c) : m_c(c) {} - result_type operator()(size_t i) const + result_type operator()(size_type i) const { return detail::extract_indexable ::get(m_c[i]); } - bool equals(size_t i1, size_t i2) const + bool equals(size_type i1, size_type i2) const { return i1 == i2; }