-
Notifications
You must be signed in to change notification settings - Fork 43
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
Problem with wrapping static
functions with v0.12.0
#150
Comments
static
functions with v0.12.0static
functions with v0.12.0
I'm not sure why this worked before, but for static methods you should use something like this (note the extra wrapped.module().method("PrivateKeyImpl__SerializedVersion", &WrappedT::SerializedVersion); Otherwise, it is assumed that a member function is wrapped. Since that is not the case here, none of the methods for adding a member function match, because the function pointer type is different, resulting in a quite verbose error here. |
Thanks! It works now!!! |
@barche I truly appreciate you taking the time to help us out - thank you very much for your support! |
Hello,
I try to move one of the projects, that is wrapped by
libcxxwrap-julia
from version v0.11.2 to the latest one. And I encountered some problems, that could be issued by breaking changes introduced by @melven on v0.12.0.In
openfhe-julia
we wrap using the following code the typePrivateKeyImpl
.The last line
wrapped.method("PrivateKeyImpl__SerializedVersion", &WrappedT::SerializedVersion);
fails usinglibcxxwrap-julia
starting with v0.12.0.Part of the code that is wrapped:
wrapped.method("SerializedObjectName", &WrappedT::SerializedObjectName);
works fine.wrapped.method("PrivateKeyImpl__SerializedVersion", &WrappedT::SerializedVersion);
fails. The only essential reason between these two methods I see, thatSerializedVersion
is astatic
function.Could it be the case, that changes between 0.11.2 and 0.12.0 introduced the problem with
static
methods?Thank you in advance!
Initial opened
Issue
: hpsc-lab/OpenFHE.jl#43Comment with compiling commands: hpsc-lab/OpenFHE.jl#43 (comment)
Used system: Ubuntu 20.04.6 LTS,
The CXX compiler identification is GNU 10.5.0
Full error log:
The text was updated successfully, but these errors were encountered: