dll icon indicating copy to clipboard operation
dll copied to clipboard

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

Open db4 opened this issue 1 year ago • 0 comments

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

db4 avatar Oct 18 '23 08:10 db4