From fa085c1ee5a6eccd6fe6b11c7bb48505d8f23eb7 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 7 Jan 2008 19:41:05 +0000 Subject: [PATCH] Remove some development code. [SVN r42573] --- .../boost/unordered/detail/hash_table_impl.hpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/include/boost/unordered/detail/hash_table_impl.hpp b/include/boost/unordered/detail/hash_table_impl.hpp index 3fada775..9a514c63 100644 --- a/include/boost/unordered/detail/hash_table_impl.hpp +++ b/include/boost/unordered/detail/hash_table_impl.hpp @@ -58,26 +58,8 @@ namespace boost { typedef BOOST_DEDUCED_TYPENAME allocator_reference::type reference; typedef BOOST_DEDUCED_TYPENAME allocator_reference::type bucket_reference; -#if 1 typedef bucket_ptr link_ptr; -#else - // This alternative version of link_ptr is used to check that the - // implementation is type safe wrt bucket_ptr and link_ptr. - // - // It's a sort of strict typedef. - struct link_ptr { - link_ptr() : ptr_() { BOOST_UNORDERED_MSVC_RESET_PTR(ptr_); } - explicit link_ptr(bucket_ptr p) : ptr_(p) {} - bucket_reference operator*() const { return *ptr_; } - bucket* operator->() const { return &*ptr_; } - operator bool() const { return ptr_; } - bool operator==(link_ptr const& x) const { return ptr_ == x.ptr_; } - bool operator!=(link_ptr const& x) const { return ptr_ != x.ptr_; } - private: - bucket_ptr ptr_; - }; -#endif // Hash Bucket // // all no throw