Can't import a function with an array parameter (MSVC) · Issue #64 · boostorg/dll · GitHub
Skip to content

Can't import a function with an array parameter (MSVC) #64

Description

@db4

Consider the following example:

boostdll::experimental::smart_library lib;
lib.load("test.dll");

int f(char a[]);
decltype(f)* pf = lib.get_function<decltype(f)>("f");

This fails to find function f as it's demangled as int __cdecl f(char * __ptr64 const), but MSVC parser doesn't accept that trailing const

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedmanglingRelated to mangled import. Probably won't be fixed without a PR

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions