Switched to non-deprecated way to say destructor might throw.

This commit is contained in:
Davis King 2019-04-03 22:47:44 -04:00
parent 64ad6b2591
commit 9433bfd6ab
1 changed files with 1 additions and 1 deletions

View File

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