From 9da52bc77f09187b51e084fbeddbeaf29465e20b 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/mssql/database.hxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'odb/mssql/database.hxx') diff --git a/odb/mssql/database.hxx b/odb/mssql/database.hxx index 3ad09a9..66b3a86 100644 --- a/odb/mssql/database.hxx +++ b/odb/mssql/database.hxx @@ -12,7 +12,7 @@ #include // std::ostream #include -#include // ODB_CXX11 +#include #include #include @@ -253,11 +253,7 @@ namespace odb auto_handle auto_environment_; SQLHENV environment_; -#ifdef ODB_CXX11 - std::unique_ptr factory_; -#else - std::auto_ptr factory_; -#endif + details::unique_ptr factory_; }; } } -- cgit v1.1