Movatterモバイル変換


[0]ホーム

URL:



This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofTC1 status.

210. distance first and last confused

Section: 26[algorithms]Status:TC1Submitter: Lisa LippincottOpened: 2000-02-15Last modified: 2016-01-28

Priority:Not Prioritized

View otheractive issues in [algorithms].

View all otherissues in [algorithms].

View all issues withTC1 status.

Discussion:

In paragraph 9 of section 26[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);

Proposed resolution:

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

Rationale:

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


[8]ページ先頭

©2009-2026 Movatter.jp