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 | 643e251d2d2ea49edc67254fb197489479b3586e (patch) | |
tree | 9cb5b18c658e59e7f0b7396cee0570ef3fbd0344 /odb/oracle/database.cxx | |
parent | 5f60d6859c6269b6a8fedbbf44973e8e9f28340c (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/oracle/database.cxx')
-rw-r--r-- | odb/oracle/database.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/oracle/database.cxx b/odb/oracle/database.cxx index a8abb53..dd35305 100644 --- a/odb/oracle/database.cxx +++ b/odb/oracle/database.cxx @@ -51,7 +51,7 @@ namespace odb auto_environment_.reset (environment_); } - if (factory_.get () == 0) + if (!factory_) factory_.reset (new connection_pool_factory ()); factory_->database (*this); @@ -111,7 +111,7 @@ namespace odb db_ = ss.str (); - if (factory_.get () == 0) + if (!factory_) factory_.reset (new connection_pool_factory ()); factory_->database (*this); @@ -210,7 +210,7 @@ namespace odb throw cli_exception (oss.str ()); } - if (factory_.get () == 0) + if (!factory_) factory_.reset (new connection_pool_factory ()); factory_->database (*this); |