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 | 654c1f97c6a4efca992c17d53136b12a9f10a047 (patch) | |
tree | 4b20d6b3abfd0c8dfc4ea3340b8b0e71025b3a93 /odb/mysql/database.hxx | |
parent | 8c3815db58dfb852a4351ca67b48690f534cca73 (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/mysql/database.hxx')
-rw-r--r-- | odb/mysql/database.hxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/odb/mysql/database.hxx b/odb/mysql/database.hxx index 0f729eb..0008836 100644 --- a/odb/mysql/database.hxx +++ b/odb/mysql/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/mysql/mysql.hxx> @@ -213,12 +213,7 @@ namespace odb const char* socket_; std::string charset_; unsigned long client_flags_; - -#ifdef ODB_CXX11 - std::unique_ptr<connection_factory> factory_; -#else - std::auto_ptr<connection_factory> factory_; -#endif + details::unique_ptr<connection_factory> factory_; }; } } |