[unreachable.sentinel] Incorrect usage example of std::unreachable_sentinel #7859
Labels
lwg
Issue must be reviewed by LWG.
not-editorial
Issue is not deemed editorial; the editorial issue is kept open for tracking.
An incorrect description of an example was spotted on Stack Overflow (the comment under the question), [unreachable.sentinel] p2 says:
The description says that the example is well-defined if a null character is reachable from
p
, butstd::ranges::find
requires the input range to be valid, as [iterator.requirements.general] p12 says:The text was updated successfully, but these errors were encountered: