Skip to content

Conversation

brendandahl
Copy link
Collaborator

@brendandahl brendandahl commented Jul 31, 2025

After #24175, pointer policies were required in more places, but there
was no way to pass the policy into val's call, operator(), and new_
methods and use pointers.

All of these methods take variadic template arguments already
which made passing separate variadic policy arguments challenging. I used
some C++14/17 tricks to separate the regular arguments and policy
arguments.

Fixes #24398

@brendandahl brendandahl requested review from sbc100 and RReverser July 31, 2025 23:25
@brendandahl
Copy link
Collaborator Author

reviewer: The first commit is just moving policy code into wire.h, so it's probably easier to look at the second commit on its own.

…w_`.

After emscripten-core#24175, pointer policies were required in more places, but there
was no way to pass the policy into val's `call`, `operator()`, and `new_`
methods and use pointers.

All of these methods take variadic template arguments already
which made passing separate variadic policy arguments challenging. I used
some C++14/17 tricks to separate the regular arguments and policy
arguments.
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.

Cannot compile projects with emsdk 4.0.9
1 participant