Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77982 - sandbox-branches/geometry/index/boost/geometry/extensions/index/translator
From: adam.wulkiewicz_at_[hidden]
Date: 2012-04-14 21:46:21


Author: awulkiew
Date: 2012-04-14 21:46:20 EDT (Sat, 14 Apr 2012)
New Revision: 77982
URL: http://svn.boost.org/trac/boost/changeset/77982

Log:
size_t changed to Container::size_type in translator::index<Container>
Text files modified:
   sandbox-branches/geometry/index/boost/geometry/extensions/index/translator/index.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: sandbox-branches/geometry/index/boost/geometry/extensions/index/translator/index.hpp
==============================================================================
--- sandbox-branches/geometry/index/boost/geometry/extensions/index/translator/index.hpp (original)
+++ sandbox-branches/geometry/index/boost/geometry/extensions/index/translator/index.hpp 2012-04-14 21:46:20 EDT (Sat, 14 Apr 2012)
@@ -17,19 +17,21 @@
 template <typename Container>
 class index
 {
+ typedef typename Container::size_type size_type;
+
 public:
     typedef typename detail::extract_indexable
         <typename Container::value_type>::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
             <typename Container::value_type>::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;
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk