Opened 11 years ago
Closed 9 years ago
#5817 closed Feature Requests (fixed)
Default template parameters for any_range
Reported by: | Owned by: | Neil Groves | |
---|---|---|---|
Milestone: | Boost 1.56.0 | Component: | range |
Version: | Boost 1.47.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
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:
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.
Change History (3)
comment:1 by , 11 years ago
Status: | new → assigned |
---|
comment:2 by , 9 years ago
Milestone: | To Be Determined → Boost 1.56.0 |
---|
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fix committed to the develop branch. The tests will need to cycle a few times and this should be merged for release 1.56