From 91c6871985166213b726b97724def3a7bbb256c8 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Wed, 30 Oct 2024 15:18:26 -0400 Subject: [PATCH] fix: deduplicate inherited members --- src/lib/Metadata/Interface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Metadata/Interface.cpp b/src/lib/Metadata/Interface.cpp index c464eb3ea..0cb3abbf4 100644 --- a/src/lib/Metadata/Interface.cpp +++ b/src/lib/Metadata/Interface.cpp @@ -75,7 +75,8 @@ class TrancheBuilder std::vector& M, const Info& I) { - M.emplace_back(I.id); + if(std::ranges::find(M, I.id) == M.end()) + M.emplace_back(I.id); } template