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.

110. istreambuf_iterator::equal not const

Section: 24.6.4[istreambuf.iterator], 24.6.4.4[istreambuf.iterator.ops]Status:TC1Submitter: Nathan MyersOpened: 1998-10-15Last modified: 2023-02-07

Priority:Not Prioritized

View otheractive issues in [istreambuf.iterator].

View all otherissues in [istreambuf.iterator].

View all issues withTC1 status.

Discussion:

Member istreambuf_iterator<>::equal is not declared"const", yet [istreambuf.iterator::op==] says that operator==,which is const, calls it. This is contradictory.

Proposed resolution:

In 24.6.4[istreambuf.iterator] and also in [istreambuf.iterator::equal],replace:

bool equal(istreambuf_iterator& b);

with:

bool equal(const istreambuf_iterator& b) const;

[8]ページ先頭

©2009-2026 Movatter.jp