mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
refs #358, changes of MS' review
https://dev.vatsim-germany.org/issues/358#note-11
This commit is contained in:
@@ -96,6 +96,7 @@ namespace BlackMisc
|
||||
//! Compare with index given by enum
|
||||
template<class EnumType> bool equalsPropertyIndexEnum(EnumType ev)
|
||||
{
|
||||
static_assert(std::is_enum<EnumType>::value, "Argument must be an enum");
|
||||
if (this->m_indexes.size() != 1) { return false; }
|
||||
return static_cast<int>(ev) == m_indexes.first();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user