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 | 9261a7076374956cacaf45d5455233ab194b7f8f (patch) | |
tree | cafb50e6636a5890eb7497fe9a2e680f5fd8bbd0 /odb/pgsql/database.hxx | |
parent | d5924c862b549f9e3d6daedae6611cfc605cdfe7 (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/pgsql/database.hxx')
-rw-r--r-- | odb/pgsql/database.hxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/odb/pgsql/database.hxx b/odb/pgsql/database.hxx index c3b42f2..c8789ac 100644 --- a/odb/pgsql/database.hxx +++ b/odb/pgsql/database.hxx @@ -12,7 +12,7 @@ #include <iosfwd> // std::ostream #include <odb/database.hxx> -#include <odb/details/config.hxx> // ODB_CXX11 +#include <odb/details/unique-ptr.hxx> #include <odb/details/transfer-ptr.hxx> #include <odb/pgsql/version.hxx> @@ -175,12 +175,7 @@ namespace odb std::string socket_ext_; std::string extra_conninfo_; std::string conninfo_; - -#ifdef ODB_CXX11 - std::unique_ptr<connection_factory> factory_; -#else - std::auto_ptr<connection_factory> factory_; -#endif + details::unique_ptr<connection_factory> factory_; }; } } |