Opened 11 years ago

Closed 9 years ago

#5817 closed Feature Requests (fixed)

Default template parameters for any_range

Reported by: bromeon@… 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 Neil Groves, 11 years ago

Status: newassigned

comment:2 by Neil Groves, 9 years ago

Milestone: To Be DeterminedBoost 1.56.0

Fix committed to the develop branch. The tests will need to cycle a few times and this should be merged for release 1.56

comment:3 by Neil Groves, 9 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.