diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-02 14:11:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-02 14:11:03 +0200 |
commit | 907801bacc542813759d6191cfd01bc26dff6648 (patch) | |
tree | e0244ebd6ac55a42b853d24b8aa0b062d6350c2c /odb/sqlite/database.cxx | |
parent | 97866a78e12fd4398ef9cb023feba794dbf7ff32 (diff) |
Reimplement C++11 support to be header-only
This way, the same build of the runtime libraries can be used in both
C++98 and C++11 modes. This is important for when runtimes are installed
or packaged.
Diffstat (limited to 'odb/sqlite/database.cxx')
-rw-r--r-- | odb/sqlite/database.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/sqlite/database.cxx b/odb/sqlite/database.cxx index cd62a1c..74c32d1 100644 --- a/odb/sqlite/database.cxx +++ b/odb/sqlite/database.cxx @@ -35,7 +35,7 @@ namespace odb foreign_keys_ (foreign_keys), factory_ (factory.transfer ()) { - if (factory_.get () == 0) + if (!factory_) factory_.reset (new connection_pool_factory ()); factory_->database (*this); @@ -74,7 +74,7 @@ namespace odb throw cli_exception (ostr.str ()); } - if (factory_.get () == 0) + if (!factory_) factory_.reset (new connection_pool_factory ()); factory_->database (*this); |