Skip to content
New issue

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

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

Already on GitHub? # to your account

Conversion of std::tuple types #148

Merged
merged 4 commits into from
Mar 7, 2021
Merged

Conversion of std::tuple types #148

merged 4 commits into from
Mar 7, 2021

Conversation

wflohry
Copy link
Contributor

@wflohry wflohry commented Feb 28, 2021

This pull request would provide support for conversion of std::tuple types. I added tests in tests/test_convert.cpp to verify proper conversion and handling. Feel free to provide change requests and/or edits as needed.

Thanks

@pmed
Copy link
Owner

pmed commented Feb 28, 2021

Hi @wflohry,

thank you for the contribution! This is great idea, to add tuple conversions to JavaScript array 👍

Copy link
Owner

@pmed pmed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, thanks for the useful changes with test!

@wflohry wflohry requested a review from pmed February 28, 2021 19:53
pmed added a commit that referenced this pull request Mar 7, 2021
Reusing existing `check_eq()` test helper, implementing only
`std::tuple` printing.

Perform all work in `convert<tuple>::{from_to}_v8_impl()` helpers with
`std::index_sequence` argument for the tuple elements enumerating.

Unified code style, use tabs instead spaces.

see PR #148
@pmed pmed merged commit 9079335 into pmed:master Mar 7, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants