From 907801bacc542813759d6191cfd01bc26dff6648 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/sqlite/database.hxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'odb/sqlite/database.hxx') diff --git a/odb/sqlite/database.hxx b/odb/sqlite/database.hxx index d2bf61f..021a5df 100644 --- a/odb/sqlite/database.hxx +++ b/odb/sqlite/database.hxx @@ -14,7 +14,7 @@ #include // std::ostream #include -#include // ODB_CXX11 +#include #include #include @@ -133,12 +133,7 @@ namespace odb std::string name_; int flags_; bool foreign_keys_; - -#ifdef ODB_CXX11 - std::unique_ptr factory_; -#else - std::auto_ptr factory_; -#endif + details::unique_ptr factory_; }; } } -- cgit v1.1