diff --git a/include/SQLiteCpp/Exception.h b/include/SQLiteCpp/Exception.h index b064ad96..6874f079 100644 --- a/include/SQLiteCpp/Exception.h +++ b/include/SQLiteCpp/Exception.h @@ -91,6 +91,9 @@ class Exception : public std::runtime_error const char* getErrorStr() const noexcept; // nothrow private: + // due to constant members the auto-assignment operator can not be generated + Exception& operator=(const Exception&); + const int mErrcode; ///< Error code value const int mExtendedErrcode; ///< Detailed error code if any };