diff --git a/include/orm/tiny/types/modelscollection.hpp b/include/orm/tiny/types/modelscollection.hpp index 1cdf72468..fb9b59cda 100644 --- a/include/orm/tiny/types/modelscollection.hpp +++ b/include/orm/tiny/types/modelscollection.hpp @@ -2302,7 +2302,7 @@ namespace Types template void ModelsCollection::throwIfInvalidWhereOperator(const QString &comparison) { - const std::unordered_set allowedOperators { + static const std::unordered_set allowedOperators { EQ, LT, GT, LE, GE, NE, NE_, };