Subject: [Boost-bugs] [Boost C++ Libraries] #5817: Default template parameters for any_range
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-27 20:20:42
#5817: Default template parameters for any_range
-------------------------------+--------------------------------------------
Reporter: bromeon@⦠| Owner: neilgroves
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: range
Version: Boost 1.47.0 | Severity: Cosmetic
Keywords: |
-------------------------------+--------------------------------------------
Would it be possible that more template parameters of boost::any_range get
a default value?
It seems like ''Reference'' and ''Difference'' mostly refer to the same
types. The declaration could look like this:
{{{
#!cpp
template<
class Value
, class Traversal
, class Reference = Value&
, class Difference = std::ptrdiff_t
, class Buffer = use_default
>
class any_range;
}}}
This would also be consistent with boost::iterator_facade.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5817> 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:07 UTC