From 2636e266dc7a048e52b40b668c460c2793e897c4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 18 Aug 2010 20:02:11 +0200 Subject: Move shared_ptr to the details namespace --- odb/pointer-traits.hxx | 43 ------------------------------------------- 1 file changed, 43 deletions(-) (limited to 'odb/pointer-traits.hxx') 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 // operators new/delete #include // std::size_t -#include - namespace odb { template @@ -157,47 +155,6 @@ namespace odb operator delete (p); } }; - - // Specialization for odb::shared_ptr. - // - template - class pointer_traits< shared_ptr > - { - public: - typedef T type; - typedef odb::shared_ptr pointer; - typedef nop_guard 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 -- cgit v1.1