Opened 14 years ago

Closed 12 years ago

#489 closed request (fixed)

Check template requirements

Reported by: Peter Owned by: Peter
Priority: critical Milestone: yat 0.7
Component: test Version: trunk
Keywords: Cc:

Description (last modified by Peter)

This request includes a lot and should probably be split into several daughter-tickets.

In functions and classes taking iterators we should document required iterator_type such as ForwardIterator.

We should test that the documented requirement is not too liberal, i.e., if documentation says ForwardIterator we should try compiling with a ForwardIterator.

In addition we should add concepts checks in these places to improve compilation error if user tries to compile with an iterator not fulfilling the requirements. See Boost Concepts.

In places where we weighted or unweighted iterator we should also add these checks.

Last we should add concept checks where we use our own concepts (related to ticket:449)

As already mentioned, this ticket obviously needs to be split into parts.

Daughter ticket: #580 #581 #582 #583 #584 #585 #586 #587 #588 #589 #590 #591 #592 #593 #594 #595 #596 #597 #598 #599 #600 #601 #602

Change History (5)

comment:1 Changed 14 years ago by Peter

Description: modified (diff)

comment:2 Changed 13 years ago by Peter

(In [2142]) clarify iterator type in random_shuffle. refs #489

comment:3 Changed 13 years ago by Peter

Description: modified (diff)
Milestone: yat 0.6yat 0.7

comment:4 Changed 13 years ago by Peter

(In [2145]) improve compile error message in random_shuffle. refs #489

comment:5 Changed 12 years ago by Peter

Resolution: fixed
Status: newclosed

all daughter tickets closed

Note: See TracTickets for help on using tickets.