8000 restrict asBytes and asChars to canMemcpy types by mikea · Pull Request #2326 · capnproto/capnproto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

restrict asBytes and asChars to canMemcpy types #2326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2025

Conversation

mikea
Copy link
Collaborator
@mikea mikea commented Jun 13, 2025

Depends on #2323
Downstreams do not have any problem with this.

@mikea mikea requested a review from kentonv June 13, 2025 19:48
I initially tried to use this as a concept, but it requires fully
declaring T when using ArrayPtr<T>/Array<T>, so assertion is better
in case of forward-declared T.
@mikea mikea force-pushed the maizatskyi/2025-06-13-asBytes branch from dda43e4 to 9e7846e Compare June 16, 2025 15:05
@mikea mikea merged commit 7ecb019 into v2 Jun 16, 2025
20 checks passed
@mikea mikea deleted the maizatskyi/2025-06-13-asBytes branch June 16, 2025 15:21
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.

3 participants
0