Open eschnett opened 1 year ago
Unfortunately, it is not possible to set a std::vector
as a module constant, since it is mapped to a pointer to that vector and this changes on every invocation. I would recommend using a lambda expression to make a function that returns the vector instead. I'll adapt libcxxwrap so that this type of use always gives a compile error.
I am using libcxxwrap-julia 0.9.7.
I encounter this error:
See here for the Github CI run that reports this error.
The compilers used are
Would an explicit cast to
const void *
solve the problem?The same code compilers without errors on other (i.e. Linux) architectures.