Title
distance first and last confused
Status
tc1
Section
[algorithms]
Submitter
Lisa Lippincott

Created on 2000-02-15.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

There are two ways to fix the defect; change the description to b-a or change the return to distance(b,a). The LWG preferred the former for consistency.

Date: 2010-10-21.18:28:33

Proposed resolution:

On the last line of paragraph 9 of section [algorithms] change "a-b" to "b-a".

Date: 2000-02-15.00:00:00

In paragraph 9 of section [algorithms], it is written:

In the description of the algorithms operators + and - are used for some of the iterator categories for which they do not have to be defined. In these cases the semantics of [...] a-b is the same as of

     return distance(a, b);

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1868
2010-10-21 18:28:33adminsetmessages: + msg1867
2000-02-15 00:00:00admincreate