Skip to content
Discussion options

You must be logged in to vote

Actually, this is an issue with the macro expansion. The macro is confused by the comma in the template definition. If I expand the macro manually but as intended then the code compiles, i.e.

        PYBIND11_OVERRIDE_PURE_NAME(PYBIND11_TYPE(vector<tuple<string, int>>),
                                    PYBIND11_TYPE(A), "fields", fields);

There some other possible workarounds here (none look pretty).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bsdz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant