Skip to content

Commit

Permalink
Fix for multiple vector members
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Apr 18, 2024
1 parent 812d695 commit 17a1201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/templates/SIOBlock.cc.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ void {{ block_class }}::read(sio::read_device& device, sio::version_type version

{% if VectorMembers %}
if (not m_subsetColl) {
bool found;
{% for member in VectorMembers %}
bool found = false;
found = false;
for (const auto& [first, second] : *m_buffers.vectorMembers) {
if (first == "{{ member.full_type }}") {
found = true;
Expand Down

0 comments on commit 17a1201

Please sign in to comment.