Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8011: iterator_range::size() is not SFINAE-friendly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-13 01:09:04
#8011: iterator_range::size() is not SFINAE-friendly
---------------------------------------------------------+------------------
Reporter: Jonathan Wakely <jwakely.boost@â¦> | Owner: neilgroves
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: range
Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------------------+------------------
Comment (by nathanridge):
Regarding the original request for making iterator_range::size() SFINAE-
friendly: I am a little hesitant about it because of the effect on the
code's readability. I am curious:
- Do you recommend this as a general technique to apply to member
functions of templates where the member function only makes sense for a
subset of the template parameters? If not, what makes
iterator_range::size() special?
- Do you see this technique used commonly elsewhere (for example,
libstdc++)?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8011#comment:6> 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:12 UTC