mirror of https://github.com/davisking/dlib.git
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