aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/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
commit907801bacc542813759d6191cfd01bc26dff6648 (patch)
treee0244ebd6ac55a42b853d24b8aa0b062d6350c2c /odb/sqlite/database.hxx
parent97866a78e12fd4398ef9cb023feba794dbf7ff32 (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/sqlite/database.hxx')
-rw-r--r--odb/sqlite/database.hxx9
1 files changed, 2 insertions, 7 deletions
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 <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/sqlite/version.hxx>
@@ -133,12 +133,7 @@ namespace odb
std::string name_;
int flags_;
bool foreign_keys_;
-
-#ifdef ODB_CXX11
- std::unique_ptr<connection_factory> factory_;
-#else
- std::auto_ptr<connection_factory> factory_;
-#endif
+ details::unique_ptr<connection_factory> factory_;
};
}
}