Skip to content

Allow empty struct or provide a way to typealias externals #1514

@derolf

Description

@derolf

doesn't work:

@Cpp(EnableIf)
struct FollyIOBuf {
    external {
        cpp include "foo.h"
        cpp name "std::unique_ptr<Foo>"
    }
}

workaround:

@Cpp(EnableIf)
struct FollyIOBuf {
    external {
        cpp include "foo.h"
        cpp name "std::unique_ptr<Foo>"
    }

  dummy: String;
}

I think a better solution would be to allow "external typealiases".

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions