Skip to content

Explore alternative force-export method for inline methods using forward declarations #171

Open
@PathogenDavid

Description

@PathogenDavid

While adding a workaround for ocornut/imgui#3850 I stumbled upon an alternative solution for (potentially?) forcing inline methods to export. Turns out you can add __declspec(dllexport) to a forward declaration and the members will be exported. (See here)

However, I did not test to see if this worked for inline methods.

I seem to recall trying this with inline functions and it didn't work, but this could potentially cut down on the noise in certain libraries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-TransformationIssues concerning Biohazrd transformationsConcept-InlineExpectationIssues concerning problems around C++'s expectation for something to be inlined.Concept-OutputFriendlinessIssues concerning the friendliness of using the Biohazrd output

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions