79592211

Date: 2025-04-25 09:29:53
Score: 1.5
Natty:
Report link

All asserts pass on all implementations of std::span so far, but is there anything I may be missing that makes this a bug, e.g., UB?

I don't think this would be undefined behavior. After all, std::span is just a class, not part of the core language, so I think this should only be unspecified behavior.

In MSVC's implementation, span1.begin()==span2.begin() can pass the inspection in Debug mode as long as span1.data()==span2.data() && span1.size()==span2.size(),

Reasons:
  • Blacklisted phrase (1): is there any
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: 許恩嘉