mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-01 17:09:55 +00:00
Using the C++11 "noexcept" keyword instead of "throw()"
- added a compatibility #define for older compilers
This commit is contained in:
@@ -51,7 +51,7 @@ Database::Database(const std::string& aFilename, const int aFlags /*= SQLITE_OPE
|
||||
}
|
||||
|
||||
// Close the SQLite database connection.
|
||||
Database::~Database(void) throw() // nothrow
|
||||
Database::~Database(void) noexcept // nothrow
|
||||
{
|
||||
int ret = sqlite3_close(mpSQLite);
|
||||
// Never throw an exception in a destructor
|
||||
|
||||
Reference in New Issue
Block a user