-
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
Support std::map as AbstractDict? #88
Comments
It looks as if this was a bit more complicated. You need also a new C++ class |
Given that this has been dormant for such a long time, I guess I shouldn't be too hopeful that there has been any progress yet? @eschnett did you ever succeed in creating a wrapper (perhaps only locally)? @barche I tried to come up with a PR to libcxxwrap-julia by following the suggestions in JuliaInterop/CxxWrap.jl#190 (comment). However, I got stuck very early since all existing STL types only support one template argument, which prevents me from using the smart-copy-and-extend-existing-code approach. It's probably too much to ask, but is there any chance you might be willing to step in here? |
@sloede Unfortunately I did not. |
@sloede How many different |
That is very true. OTOH, I feel like it wouldn't do a very good service to most users if we only had a "half-solution" here, which works only for a very limited subset of cases. I saw what you did with |
How difficult would it be to add support for
std::map
as anAbstractDict
in Julia?I've browsed the source code, and it seems that implementing this along the lines in which
std::vector
is handled seems straightforward. The only complication I'm seeing is thatstd::map
takes two template arguments, not just one.As far as I can tell, implementing this would touch three files:
stl.hpp
andstl.cpp
inlibcxxwrap-julia
, as well as the fileStdLib.jl
inCxxWrap
.Would this be feasible? Am I missing something?
The text was updated successfully, but these errors were encountered: