From 1d7a209668c79bbe6487f38078ff22aa1a87c159 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Wed, 3 Jul 2013 14:00:24 +0300 Subject: [PATCH] Use documented shared_ptr::element_type instead of value_type, which was removed from boost 1.53+ --- search/search_query.cpp | 8 ++++---- search/search_query.hpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/search/search_query.cpp b/search/search_query.cpp index 424f3e7b42..f2dbac500c 100644 --- a/search/search_query.cpp +++ b/search/search_query.cpp @@ -339,23 +339,23 @@ namespace class IndexedValue { public: - typedef impl::PreResult2 value_type; + typedef impl::PreResult2 element_type; private: array m_ind; /// @todo Do not use shared_ptr for optimization issues. /// Need to rewrite std::unique algorithm. - shared_ptr m_val; + shared_ptr m_val; public: - explicit IndexedValue(value_type * v) : m_val(v) + explicit IndexedValue(element_type * v) : m_val(v) { for (size_t i = 0; i < m_ind.size(); ++i) m_ind[i] = numeric_limits::max(); } - value_type const & operator*() const { return *m_val; } + element_type const & operator*() const { return *m_val; } void SetIndex(size_t i, size_t v) { m_ind[i] = v; } diff --git a/search/search_query.hpp b/search/search_query.hpp index 166de17839..d7ef608529 100644 --- a/search/search_query.hpp +++ b/search/search_query.hpp @@ -239,7 +239,7 @@ private: }; struct RefPointer { - template typename T::value_type const & operator() (T const & t) const { return *t; } + template typename T::element_type const & operator() (T const & t) const { return *t; } template T const & operator() (T const * t) const { return *t; } };