mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
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:
parent
89d6055fed
commit
4887e1c487
@ -33,7 +33,7 @@ namespace dlib
|
||||
}
|
||||
}
|
||||
|
||||
~transaction()
|
||||
~transaction() throw (std::exception)
|
||||
{
|
||||
if (!committed)
|
||||
db.exec("rollback");
|
||||
|
Loading…
Reference in New Issue
Block a user