0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Merge pull request #240 from dirkvdb/develop

Fixed transaction_t move constructor
This commit is contained in:
Roland Bock 2018-07-05 22:02:27 +02:00 committed by GitHub
commit d3f7eb0167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,12 @@ namespace sqlpp
} }
transaction_t(const transaction_t&) = delete; transaction_t(const transaction_t&) = delete;
transaction_t(transaction_t&&) = default; transaction_t(transaction_t&& other)
: _db(other._db), _report_unfinished_transaction(other._report_unfinished_transaction), _finished(other._finished)
{
other._finished = true;
}
transaction_t& operator=(const transaction_t&) = delete; transaction_t& operator=(const transaction_t&) = delete;
transaction_t& operator=(transaction_t&&) = delete; transaction_t& operator=(transaction_t&&) = delete;