No, you cannot have a namespace-scope function that goes across the ABI. I recommend making a wrapper class and making the function a static.
C++/CX: Defining public void at namespace scope
-
31-05-2022 - |
Вопрос
Is it possible to define a public void at the namespace scope (that can pass through ABI and later be used inside an JavaScript project)? Of course, "public void update(int param);" doesn't work as public seems to be invalid keyword in this context. The alternative is to make a class to hold that method but I would like to avoid that and have a function at the namespace scope.
Thanks
Решение
Не связан с StackOverflow