diff --git a/include/SQLiteCpp/Statement.h b/include/SQLiteCpp/Statement.h index 0d7bd7c..7a03ffa 100644 --- a/include/SQLiteCpp/Statement.h +++ b/include/SQLiteCpp/Statement.h @@ -68,17 +68,6 @@ public: */ Statement(Database& aDatabase, const std::string& aQuery); -#if (__cplusplus >= 201103L) || ( defined(_MSC_VER) && (_MSC_VER >= 1600) ) // C++11: Visual Studio 2010 - /** - * @brief Move Constructor - * - * Allows inserting into STL containers that may need to move memory when growing. - * - * @param aOther Statement to move to - */ - Statement(Statement&& aOther); -#endif - /** * @brief Finalize and unregister the SQL query from the SQLite Database Connection. */ diff --git a/src/Statement.cpp b/src/Statement.cpp index f83f00f..98db9ec 100644 --- a/src/Statement.cpp +++ b/src/Statement.cpp @@ -43,22 +43,6 @@ Statement::Statement(Database &aDatabase, const std::string& aQuery) : mColumnCount = sqlite3_column_count(mStmtPtr); } -#if (__cplusplus >= 201103L) || ( defined(_MSC_VER) && (_MSC_VER >= 1600) ) // C++11: Visual Studio 2010 -// Move Constructor -Statement::Statement(Statement&& aOther): - mQuery(std::move(aOther.mQuery)), - mStmtPtr(aOther.mStmtPtr), // TODO: need a move operator - mColumnCount(aOther.mColumnCount), - mColumnNames(std::move(aOther.mColumnNames)), - mbOk(aOther.mbOk), - mbDone(aOther.mbDone) -{ - // other.mStmtPtr = nullptr; // doesn't support reassigning - other.mColumnCount = 0; - other.mbOk = false; - other.mbDone = false; -} -#endif // Finalize and unregister the SQL query from the SQLite Database Connection. Statement::~Statement() noexcept // nothrow