You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-12Lines changed: 2 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -977,19 +977,9 @@ You can also further specialize on `T` to get specific behavior depending on th
977
977
978
978
View [StdLib](./src/StdLib) to check available methods. The containers have iterators defined, and hence are iterable.
979
979
980
-
To add support for e.g. vectors of your own type `World`, either just add methods that use an `std::vector<World>` as an argument, or manually wrap them using `jlcxx::stl::apply_stl<World>(mod);`.
980
+
To add support for e.g. vectors of your own type `World`, just add methods that use an `std::vector<World>` as an argument or return type.
981
981
For this to work, add `#include "jlcxx/stl.hpp"` to your C++ file.
982
982
983
-
If the type `World` contains methods that take or return `std::` collections of type `World` or `World*`, however, you must first complete the type, so that CxxWrap can generate the type and the template specializations for the `std::` collections.
984
-
In this case, you can add those methods to your type like this:
Linking wrappers using STL support requires adding `JlCxx::cxxwrap_julia_stl` to the `target_link_libraries` command in `CMakeLists.txt`.
994
984
995
985
### Working with `StdString`
@@ -1072,7 +1062,7 @@ The reason for this change is that the old method caused crahses on macOS with A
1072
1062
1073
1063
## Breaking changes in v0.17
1074
1064
1075
-
* The binary parts of dependent packages need to be rebuilt against `libcxxwrap-julia` 0.14, which has a better way of adding STL functionality
1065
+
* The binary parts of dependent packages need to be rebuilt against `libcxxwrap-julia` 0.14, which has a better way of adding STL functionality. This means the `apply_stl` function has been removed and calls to it should just be removed, since the appropriate types are now generated automatically.
1076
1066
1077
1067
## References
1078
1068
* [JuliaCon 2020 Talk: Julia and C++: a technical overview of CxxWrap.jl](https://www.youtube.com/watch?v=u7IaXwKSUU0)
0 commit comments