You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[embind] Add pointer policies for val's call, operator(), and new_.
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.
// Prefer calling val::typeOf() over val::typeof(), since this form works in both C++11 and GNU++11 build modes. "typeof" is a reserved word in GNU++11 extensions.
@@ -573,8 +573,27 @@ class EMBIND_VISIBILITY_DEFAULT val {
573
573
template<typename WrapperType>
574
574
friend val internal::wrapped_extend(const std::string& , const val& );
0 commit comments