Skip to content

Commit

Permalink
* Let Parser map iterators of basic containers systematically (pull
Browse files Browse the repository at this point in the history
  • Loading branch information
HGuillemet committed Jul 9, 2023
1 parent 7abed1c commit 2dacec9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Let `Parser` map iterators of basic containers systematically ([pull #694](https://github.com/bytedeco/javacpp/pull/694))
* Fix `Parser` for function parameters contained in template arguments ([pull #693](https://github.com/bytedeco/javacpp/pull/693))
* Fix `Parser` on function pointer declarations starting with `typedef struct` ([pull bytedeco/javacpp-presets#1361](https://github.com/bytedeco/javacpp-presets/pull/1361))

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/bytedeco/javacpp/tools/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ void containers(Context context, DeclarationList declList) throws ParserExceptio
:
" public native @Name(\"operator *\") " + valueType.annotations + valueType.javaName + " get();\n")
+ " }\n";
if (infoMap.getFirst(containerType.cppName + "::" + iteratorType) == null) {
infoMap.put(new Info(containerType.cppName + "::" + iteratorType).pointerTypes(containerType.javaName + ".Iterator"));
}
}
if (resizable) {
valueType.javaName = removeAnnotations(valueType.javaName);
Expand Down

0 comments on commit 2dacec9

Please sign in to comment.