aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/database.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-03-02 14:11:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-03-02 14:11:03 +0200
commit9da52bc77f09187b51e084fbeddbeaf29465e20b (patch)
tree0b063b0677990ab13c268e45030ad2c89e613fcc /odb/mssql/database.hxx
parent60fcae9f4843a34908207ece658aed041fcfd722 (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/mssql/database.hxx')
-rw-r--r--odb/mssql/database.hxx8
1 files changed, 2 insertions, 6 deletions
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 <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/mssql/mssql-fwd.hxx>
@@ -253,11 +253,7 @@ namespace odb
auto_handle<SQL_HANDLE_ENV> auto_environment_;
SQLHENV environment_;
-#ifdef ODB_CXX11
- std::unique_ptr<connection_factory> factory_;
-#else
- std::auto_ptr<connection_factory> factory_;
-#endif
+ details::unique_ptr<connection_factory> factory_;
};
}
}