diff --git a/fieldbasedtag.h b/fieldbasedtag.h index 1e9baea..8c1b814 100644 --- a/fieldbasedtag.h +++ b/fieldbasedtag.h @@ -187,7 +187,12 @@ inline bool FieldMapBasedTag::hasField(KnownField field) con template inline bool FieldMapBasedTag::hasField(const typename FieldType::identifierType &id) const { - return m_fields.count(id); + for (auto range = m_fields.equal_range(id); range.first != range.second; ++range.first) { + if(!range.first->second.value().isEmpty()) { + return true; + } + } + return false; } template