From 125386e3109de90610376f07fe62463b146e23b5 Mon Sep 17 00:00:00 2001 From: Philipp2405 Date: Wed, 15 Mar 2017 10:42:04 +0100 Subject: [PATCH] added private assigment operator to Exception class to avoid MSVC warning: C4512: 'SQLite::Exception' : assignment operator could not be generated ...' --- include/SQLiteCpp/Exception.h | 3 +++ 1 file changed, 3 insertions(+) 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 };