This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of TC1 status.
Section: 25 [algorithms] Status: TC1 Submitter: Lisa Lippincott Opened: 2000-02-15 Last modified: 2017-02-03
Priority: Not Prioritized
View other active issues in [algorithms].
View all other issues in [algorithms].
View all issues with TC1 status.
In paragraph 9 of section 25 [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);
On the last line of paragraph 9 of section 25 [algorithms] change "a-b" to "b-a".
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.