Minor changes of the description of comparison operators of std::reverse_iterator

1,314 views
Skip to first unread message

Vlad from Moscow

unread,
Jul 3, 2019, 1:13:29 PM7/3/19
to ISO C++ Standard - Discussion
In the C++ 17 Standard there is written relative to comparison operators (for example)

27.5.1.3.13 operator== [reverse.iter.op==]
template<class Iterator1, class Iterator2>

 
constexpr bool operator==
( const reverse_iterator<Iterator1>& x,
 
const reverse_iterator<Iterator2>& y);


1 Returns: x.current == y.current.

Should it be

1 Returns: x.base() == y.base().


instead of

1 Returns: x.current == y.current.

Daniel Krügler

unread,
Jul 3, 2019, 1:31:17 PM7/3/19
to std-dis...@isocpp.org
Am Mi., 3. Juli 2019 um 19:13 Uhr schrieb 'Vlad from Moscow' via ISO
C++ Standard - Discussion <std-dis...@isocpp.org>:
The current C++20 working draft does so already.

- Daniel

Vlad from Moscow

unread,
Jul 3, 2019, 1:40:44 PM7/3/19
to ISO C++ Standard - Discussion
Thanks Daniel.

By the way could you provide a reference to the current C++20 Working Draft?

среда, 3 июля 2019 г., 20:31:17 UTC+3 пользователь Daniel Krügler написал:

Daniel Krügler

unread,
Jul 3, 2019, 1:42:23 PM7/3/19
to std-dis...@isocpp.org
Am Mi., 3. Juli 2019 um 19:40 Uhr schrieb 'Vlad from Moscow' via ISO
C++ Standard - Discussion <std-dis...@isocpp.org>:
>
> Thanks Daniel.
>
> By the way could you provide a reference to the current C++20 Working Draft?

Sure:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4820.pdf

- Daniel

Matthew Woehlke

unread,
Jul 8, 2019, 1:03:38 PM7/8/19
to std-dis...@isocpp.org, C++ Discussions
On 03/07/2019 13.40, 'Vlad from Moscow' wrote:
> By the way could you provide a reference to the current C++20 Working Draft?

Canonical answer: http://wg21.link/draft

...slightly less official, but theoretically the same content, and
always up to date. (Also, easy to remember.)

BTW, this list has moved; please use the new address (CC'd).

--
Matthew
Reply all
Reply to author
Forward
0 new messages