Skip to content

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Nov 20, 2024

Problem:

  • string_view's constructor takes a char const * and a size, not an iterator and a size. On platforms where an array iterator is not a simple pointer, this fails.

Solution:

  • Use data instead of cbegin to access the string data.

Problem:
- `string_view`'s constructor takes a `char const *` and a size, not an iterator
  and a size. On platforms where an array iterator is not a simple pointer, this
  fails.

Solution:
- Use `data` instead of `cbegin` to access the string data.
@lukevalenty lukevalenty merged commit fd1e82e into intel:main Nov 20, 2024
32 checks passed
@elbeno elbeno deleted the fix-string-view-construction branch November 20, 2024 21:06
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