From 9940c31a816b61a6117c08b22ae2d6c18a8952ad Mon Sep 17 00:00:00 2001 From: HGuillemet Date: Sun, 11 Feb 2024 15:31:28 +0100 Subject: [PATCH] * Let `Parser` support templates with unnamed type parameters (pull #742) --- CHANGELOG.md | 1 + src/main/java/org/bytedeco/javacpp/tools/Parser.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49fb6d5c..3d55770d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ + * Let `Parser` support templates with unnamed type parameters ([pull #742](https://github.com/bytedeco/javacpp/pull/742)) * Prevent `Parser` from producing duplicate declarations for basic containers ([pull #741](https://github.com/bytedeco/javacpp/pull/741)) ### January 29, 2024 version 1.5.10 diff --git a/src/main/java/org/bytedeco/javacpp/tools/Parser.java b/src/main/java/org/bytedeco/javacpp/tools/Parser.java index 65046ca8..a86cf3dd 100644 --- a/src/main/java/org/bytedeco/javacpp/tools/Parser.java +++ b/src/main/java/org/bytedeco/javacpp/tools/Parser.java @@ -654,6 +654,8 @@ TemplateMap template(Context context) throws ParserException { String key = t.value; map.put(key, map.get(key)); token = tokens.next(); + } else { + map.put("typename arg" + map.size(), null); // Anonymous type } } else if (token.match(Token.IDENTIFIER)) { Type type = type(context); // ignore?