Skip to content
This repository was archived by the owner on Mar 26, 2020. It is now read-only.
This repository was archived by the owner on Mar 26, 2020. It is now read-only.

Extern type defined with generic parameters incorrectly generated in C++ #149

@Goos

Description

@Goos

When defining an external type in yaml like so:

name: generic_interface
typedef: 'interface'
params: [parameter]
prefix: ''
cpp:
  typename: 'test::GenericInterface'
  header: '"../generic_interface.hpp"'
  byValue: false

# Followed by the java + obj-c definitions

And an interface using the type:

do_things(): generic_interface<another_type>;

The signature for a method using this type is generated thusly:

virtual std::shared_ptr<test::GenericInterface><AnotherType> doThings() = 0;

So the type parameter is tacked on at the end of the pointer definition, rather than after the type definition, as one would expect:

virtual std::shared_ptr<test::GenericInterface<AnotherType>> doThings() = 0;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions