diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-09 10:36:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-09 10:36:15 +0200 |
commit | ec355c48c49074bebeb597f6e5dcedfeb9d52fae (patch) | |
tree | 9adb18bffe27c6d0bce53c7e6bad6be583dc59ee /odb/pointer-traits.hxx | |
parent | d2b7cfe47694cef008949255426cc57ab9a8e18a (diff) |
Add lazy pointer support
Built-in support is provided for raw, auto, and tr1 shared/weak pointers.
New test: common/lazy-ptr.
Diffstat (limited to 'odb/pointer-traits.hxx')
-rw-r--r-- | odb/pointer-traits.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odb/pointer-traits.hxx b/odb/pointer-traits.hxx index 90d9b4b..07cc253 100644 --- a/odb/pointer-traits.hxx +++ b/odb/pointer-traits.hxx @@ -76,6 +76,7 @@ namespace odb { public: static pointer_kind const kind = pk_naked; + static bool const lazy = false; typedef T element_type; typedef T* pointer_type; @@ -136,6 +137,7 @@ namespace odb { public: static pointer_kind const kind = pk_unique; + static bool const lazy = false; typedef T element_type; typedef std::auto_ptr<element_type> pointer_type; |