Skip to content

fix(compatibility): construct string_view by length, not by iterator pair - #969

Merged
Try merged 2 commits into
Try:masterfrom
orbis-ports:fix/string-view-cxx17
Aug 20, 2026
Merged

fix(compatibility): construct string_view by length, not by iterator pair#969
Try merged 2 commits into
Try:masterfrom
orbis-ports:fix/string-view-cxx17

Conversation

@mikolajmikolajczyk

Copy link
Copy Markdown
Contributor

basic_string_view(It first, End last) is C++20 and libc++ 11 does not have it. The call fails with "no matching constructor".
The length form is C++17, exists in both libraries, and denotes the same view - ptr..ptr+size is a range of length size.

…pair

basic_string_view(It first, End last) is C++20 and libc++ 11 does not have it;
the call fails with "no matching constructor". The length form is C++17, exists
in both libraries, and denotes the same view - ptr..ptr+size is a range of
length size.
@Try
Try merged commit cd3ccd4 into Try:master Aug 20, 2026
6 checks passed
@Try

Try commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants