Fix gcc compilation error

error: function ‘SQLite::Statement& SQLite::Statement::operator=(SQLite::Statement&&)’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration
This commit is contained in:
Sébastien Rombauts 2023-08-29 08:24:43 +02:00
parent b657c5f861
commit aa76361203

View File

@ -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