diff options
Diffstat (limited to 'boost/heap/detail/tree_iterator.hpp')
-rw-r--r-- | boost/heap/detail/tree_iterator.hpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/boost/heap/detail/tree_iterator.hpp b/boost/heap/detail/tree_iterator.hpp index 83c8d3fb4c..2bc05ea1ab 100644 --- a/boost/heap/detail/tree_iterator.hpp +++ b/boost/heap/detail/tree_iterator.hpp @@ -6,8 +6,6 @@ // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -// Disclaimer: Not a Boost library. - #ifndef BOOST_HEAP_DETAIL_TREE_ITERATOR_HPP #define BOOST_HEAP_DETAIL_TREE_ITERATOR_HPP @@ -23,8 +21,7 @@ namespace detail { template<typename type> -struct identity: - public std::unary_function<type,type> +struct identity { type& operator()(type& x) const { return x; } @@ -33,19 +30,6 @@ struct identity: { return x; } }; -template<typename type> -struct caster: - public std::unary_function<type,type> -{ - template <typename U> - type& operator()(U& x) const - { return static_cast<type&>(x); } - - template <typename U> - const type& operator()(const U& x) const - { return static_cast<const type&>(x); } -}; - template<typename Node> struct dereferencer { |