Added an exception specification saying that transaction's destructor can throw

since C++11 sets all destructors to noexcept unless otherwise specified.
This commit is contained in:
Davis King 2015-07-22 14:46:26 -04:00
parent 89d6055fed
commit 4887e1c487
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ namespace dlib
}
}
~transaction()
~transaction() throw (std::exception)
{
if (!committed)
db.exec("rollback");