Merge lp:~abreu-alexandre/v8-cpp/handle-enum-class-to-v8-convert into lp:v8-cpp
Proposed by
Alexandre Abreu
Status: | Merged |
---|---|
Approved by: | Marcus Tomlinson |
Approved revision: | 37 |
Merged at revision: | 37 |
Proposed branch: | lp:~abreu-alexandre/v8-cpp/handle-enum-class-to-v8-convert |
Merge into: | lp:v8-cpp |
Diff against target: |
76 lines (+29/-2) 4 files modified
src/internal/convert.h (+2/-1) tests/functions/module.cpp (+2/-1) tests/functions/test.cpp (+12/-0) tests/functions/test.h (+13/-0) |
To merge this branch: | bzr merge lp:~abreu-alexandre/v8-cpp/handle-enum-class-to-v8-convert |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marcus Tomlinson (community) | Approve | ||
Review via email: mp+282203@code.launchpad.net |
Commit message
Handle "enum class" as a type for to_v8 conversions.
Description of the change
Handle "enum class" as a type for to_v8 conversions. As is the Convert template struct that handles the from_v8 and to_v8 bits for integral types (used for v8::Number -> int conversion) is statically declared as having one to_v8 non parametric polymorph function, which does not work when called for non scoped enums (that do convert to int) and scoped enums (that dont),
To post a comment you must log in.
Excellent! Thanks!