From df9f1d5b21cfa794a870acccaa06a62d97b91fd5 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Wed, 2 Oct 2024 10:36:32 +0200 Subject: [PATCH] Make sure that all user facing types exist Otherwise things start to break in cases where users explicitly use these types at the moment. --- python/templates/LinkCollection.h.jinja2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/templates/LinkCollection.h.jinja2 b/python/templates/LinkCollection.h.jinja2 index bab832e73..7ebc9dea7 100644 --- a/python/templates/LinkCollection.h.jinja2 +++ b/python/templates/LinkCollection.h.jinja2 @@ -12,6 +12,9 @@ {{ utils.namespace_open(class.namespace) }} using {{ class.bare_type }}Collection = podio::LinkCollection<{{ From }}, {{ To }}>; +using {{ class.bare_type }} = typename {{ class.bare_type }}Collection::value_type; +using Mutable{{ class.bare_type }} = typename {{ class.bare_type }}Collection::mutable_type; + {{ utils.namespace_close(class.namespace) }} #endif