-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_const
likes to create references
#374
Comments
Confirmed, until I can find a more elegant fix, you can work around this using: mod.set_const("CHAR", static_cast<Datatype>(dt)); |
barche
added a commit
to JuliaInterop/libcxxwrap-julia
that referenced
this issue
Sep 26, 2023
barche
added a commit
to JuliaInterop/libcxxwrap-julia
that referenced
this issue
Nov 16, 2023
barche
added a commit
to JuliaInterop/libcxxwrap-julia
that referenced
this issue
Nov 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was using
set_const
to define enum values. This code works fine (CHAR
is an enum constant):mod.set_const("CHAR", CHAR);
This code, however, leads to problems and crashes while precompiling:
It seems that this creates something that is a
CxxReference{Datatype}
on the Julia side, and which internally holds a pointer.Is that behaviour ever useful? If not, should
set_const
automatically remove references etc.?The text was updated successfully, but these errors were encountered: