From 9261a7076374956cacaf45d5455233ab194b7f8f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 2 Mar 2012 14:11:03 +0200 Subject: 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. --- odb/pgsql/database.hxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'odb/pgsql/database.hxx') 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 // std::ostream #include -#include // ODB_CXX11 +#include #include #include @@ -175,12 +175,7 @@ namespace odb std::string socket_ext_; std::string extra_conninfo_; std::string conninfo_; - -#ifdef ODB_CXX11 - std::unique_ptr factory_; -#else - std::auto_ptr factory_; -#endif + details::unique_ptr factory_; }; } } -- cgit v1.1