aboutsummaryrefslogtreecommitdiff
path: root/odb/details/transfer-ptr.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/transfer-ptr.hxx')
-rw-r--r--odb/details/transfer-ptr.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/odb/details/transfer-ptr.hxx b/odb/details/transfer-ptr.hxx
index e7ad42c..5481252 100644
--- a/odb/details/transfer-ptr.hxx
+++ b/odb/details/transfer-ptr.hxx
@@ -27,7 +27,9 @@ namespace odb
transfer_ptr (std::auto_ptr<T1> p): p_ (p.release ()) {}
#ifdef ODB_CXX11
+#ifdef ODB_CXX11_NULLPTR
transfer_ptr (std::nullptr_t): p_ (0) {}
+#endif
template <typename T1>
transfer_ptr (std::unique_ptr<T1>&& p): p_ (p.release ()) {}