diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-18 20:02:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-18 20:02:11 +0200 |
commit | 2636e266dc7a048e52b40b668c460c2793e897c4 (patch) | |
tree | 9717f573d9733b8cfa09a15ee44ed7768c427d7b /odb/pointer-traits.hxx | |
parent | dce5d0658e67ced4d5fa64f98f598b86917927a7 (diff) |
Move shared_ptr to the details namespace
Diffstat (limited to 'odb/pointer-traits.hxx')
-rw-r--r-- | odb/pointer-traits.hxx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/odb/pointer-traits.hxx b/odb/pointer-traits.hxx index 26f8b90..23ec1f8 100644 --- a/odb/pointer-traits.hxx +++ b/odb/pointer-traits.hxx @@ -9,8 +9,6 @@ #include <new> // operators new/delete #include <cstddef> // std::size_t -#include <odb/shared-ptr.hxx> - namespace odb { template <typename P> @@ -157,47 +155,6 @@ namespace odb operator delete (p); } }; - - // Specialization for odb::shared_ptr. - // - template <typename T> - class pointer_traits< shared_ptr<T> > - { - public: - typedef T type; - typedef odb::shared_ptr<T> pointer; - typedef nop_guard<pointer> guard; - - static type* - get_ptr (const pointer& p) - { - return p.get (); - } - - static type& - get_ref (const pointer& p) - { - return *p; - } - - static bool - null_ptr (const pointer& p) - { - return !p; - } - - static void* - allocate (std::size_t n) - { - return operator new (n, shared); - } - - static void - free (void* p) - { - operator delete (p, shared); - } - }; } #endif // ODB_POINTER_TRAITS_HXX |