lib: [[nodiscard]]

This commit is contained in:
Michele Caini 2024-10-23 09:30:21 +02:00
parent 08350199e3
commit 35c840ab61

View File

@ -53,7 +53,7 @@ public:
* @brief Returns the last error message, if any.
* @return The last error message, if any.
*/
const char *error() const noexcept;
[[nodiscard]] const char *error() const noexcept;
private:
bool opened;