From aa7636120375d9fc6d25fc91fbe0ee4a907f9696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Tue, 29 Aug 2023 08:24:43 +0200 Subject: [PATCH] Fix gcc compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: function ‘SQLite::Statement& SQLite::Statement::operator=(SQLite::Statement&&)’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration --- include/SQLiteCpp/Statement.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SQLiteCpp/Statement.h b/include/SQLiteCpp/Statement.h index ba846a8..5f1e390 100644 --- a/include/SQLiteCpp/Statement.h +++ b/include/SQLiteCpp/Statement.h @@ -77,9 +77,9 @@ public: Statement(const Statement&) = delete; Statement& operator=(const Statement&) = delete; - // TODO: Change Statement move constructor to default + // Statement is movable Statement(Statement&& aStatement) noexcept; - Statement& operator=(Statement&& aStatement) noexcept = default; + Statement& operator=(Statement&& aStatement) = default; /// Finalize and unregister the SQL query from the SQLite Database Connection. /// The finalization will be done by the destructor of the last shared pointer