Created on 2023-08-26.00:00:00 last changed 24 months ago
[ 2023-10-30; Reflector poll ]
Set priority to 3 after reflector poll.
The heterogeneous comparison operators of basic_const_iterator only constrain type I to be comparable with the underlying iterator type, which allows non-iterator types such as optional, and the heterogeneous comparison operators of the latter would make the situation worse (demo):
#include <iterator>
#include <optional>
int main() {
std::basic_const_iterator<const int*> it;
std::optional opt{it};
auto c = opt < it; // infinite meta-recursion
auto d = it - opt; // infinite meta-recursion
}
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2023-10-30 17:22:20 | admin | set | messages: + msg13794 |
| 2023-08-26 00:00:00 | admin | create | |