this post was submitted on 13 Sep 2025
34 points (97.2% liked)
C++
2168 readers
4 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
QSqlErrorin my functions and point the user toQSqlErrordocumentation in QtF1at any time in Qt Creator to get the help pageboolreturn value (I am sitting 10m away in the same room as the client. Senior management is in another state)F1on their computer and show the userbool QSqlError::isValid()boolresult.isValid()in anifstatement.booldeleteDocumentfunction is deleting the document but returning false.Yes, they called
deleteDocumenton the same ID twice.BTW, I did create a manual with usage examples.
A few months later, a senior engineer on the client side checks their code and tells me to
throwexceptions for everything, because half of the time, the user-devs are not checking theQSqlErrorreturn values.From what I remember, that gives a warning an not an error.
The clients' code already has >400 warnings^[edit: fixed wrong word] on every build. They won't care
Yeah,
[[nodiscard]]throws a warning (that's half the point of attributes, anyway).