mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-01 09:08:47 +00:00
Using the C++11 "noexcept" keyword instead of "throw()"
- added a compatibility #define for older compilers
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
|
||||
#include "Database.h"
|
||||
#include "Assertion.h"
|
||||
#include "Exception.h"
|
||||
|
||||
|
||||
namespace SQLite
|
||||
@@ -28,7 +27,7 @@ Transaction::Transaction(Database& aDatabase) : // throw(SQLite::Exception)
|
||||
}
|
||||
|
||||
// Safely rollback the transaction if it has not been committed.
|
||||
Transaction::~Transaction(void) throw() // nothrow
|
||||
Transaction::~Transaction(void) noexcept // nothrow
|
||||
{
|
||||
if (false == mbCommited)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user