fail with the first unmet constraint to avoid running into type mismatches

This commit is contained in:
Marco Porsch 2023-08-23 15:42:06 +02:00
parent f716227d0a
commit aee67d58f0

View File

@ -120,7 +120,7 @@ public:
{
bool allTrue = true;
for (auto &&constraint : m_constraints) {
allTrue = applyFunction(*constraint) && allTrue;
allTrue = allTrue && applyFunction(*constraint);
}
return allTrue;