Re: [Boost-bugs] [Boost C++ Libraries] #4296: has_iterator, has_const_iterator metafunctions

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4296: has_iterator, has_const_iterator metafunctions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-11 16:32:03


#4296: has_iterator, has_const_iterator metafunctions
------------------------------------------------------------------------+---
 Reporter: Tomas Puverle (tomas dot puverle at morganstanley dot com) | Owner: neilgroves
     Type: Feature Requests | Status: new
Milestone: Boost 1.44.0 | Component: range
  Version: Boost 1.44.0 | Severity: Not Applicable
 Keywords: has_iterator, has_const_iterator |
------------------------------------------------------------------------+---

Comment(by steven_watanabe):

 This would be better implemented as

 {{{
 BOOST_MPL_HAS_XXX_TRAIT_DEF(type);
 template<class T>
 struct has_iterator : has_type<boost::range_iterator<T> > {};
 template<class T>
 struct has_const_iterator : has_type<boost::range_const_iterator<T> > {};
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4296#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC