-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert return value of wrapped C++ function with respect to class pt…
…r_traits A wrapped function may return a wrapped C++ object, so we need to use appropriate converter specialization (e.g. `convert<std::shared_ptr<T>`) for such a wrapped class `T`. Reusing `call_from_v8_traits<F>::arg_converter<return_type, Traits>` meta-function to get the converter type in `forward_ret()` for the certain function result type. Extracted `call_from_v8_traits<F>::arg_converter<Arg, Traits>` to use a type instead of argument index. Added optional `Traits = raw_ptr_traits` template argument to `wrap_function()` and `wrap_function_template()` in order to allow `forward_function()` instantiation for the specified `Traits` Work in context of issue #113
- Loading branch information
Showing
2 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters