diff --git a/src/phrase.h b/src/phrase.h index 8b22dfb..d56b1dc 100644 --- a/src/phrase.h +++ b/src/phrase.h @@ -25,7 +25,7 @@ #include #include #include -#if __cplusplus >= 201103L +#ifdef Q_COMPILER_INITIALIZER_LISTS # include #endif @@ -330,6 +330,15 @@ public: AssignmentPhrase operator =(const bool &other) { return AssignmentPhrase(this, other); } + + FieldPhrase operator !() + { + FieldPhrase f(data->className, data->fieldName); + f.data = new PhraseData(data); + f.data->isNot = !data->isNot; + return f; + } + operator ConditionalPhrase() { return ConditionalPhrase(this, PhraseData::Equal, !data->isNot);