llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

operator<=> not defined for __wrap_iter

Open ojrosten opened this issue 3 years ago • 5 comments

While it is possible to use three way comparison for iterators coming from e.g. std::array, this does not work for e.g. std::vector.

The culprit appears to be that oeprator<=> is not defined for the iterator wrapper used in the latter.

https://godbolt.org/z/fMdYvvz5Y

ojrosten avatar May 02 '23 06:05 ojrosten

Can work on this issue?

Long5hot avatar May 05 '23 10:05 Long5hot

@Long5hot are you still working on a patch for this issue?

mordante avatar Dec 27 '23 19:12 mordante

had to move on other things, so could not able to focus on this issue..

Long5hot avatar Dec 27 '23 19:12 Long5hot

had to move on other things, so could not able to focus on this issue..

No problem, thanks for the feedback.

mordante avatar Dec 27 '23 19:12 mordante

FYI This actually is not a bug, it was a feature we had not implemented yet. I just put up a patch for review.

mordante avatar Jul 17 '24 15:07 mordante