Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make error type bool conversion operators explicit
This avoids ambiguities caused by overload resolution trying to use these conversion operators to jump to other types in implicit conversion (i.e. QTextStream& operator<<(QTextStream& ts, const Qx::Error e), but still allows simple statements like: if(errorDerivedInstance) because these explicit conversion function are still allowed to be used somewhat implicitly in "conditional contexts". See https://en.cppreference.com/w/cpp/language/ implicit_conversion#Contextual%20conversions
- Loading branch information