Skip to content

Wrapping containers of containers #24

@FeherMarcell

Description

@FeherMarcell

module.add_container() fails if the type you are trying to wrap is a container of a container, for example std::vector<std::vector<uint8_t>>.

After some debugging I found that the root cause is that the tokenizer is treating the ending >> as a single token, instead of two separate closing brackets.

A workaround is to insert a space between the brackets when registering the container, for example: mod.add_container('std::vector<std::vector<uint8_t> >', 'std::vector<uint8_t>', 'vector'), this is tokenized properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions