1919#ifndef LIBBITCOIN_DATABASE_PRIMITIVES_ELEMENT_IPP
2020#define LIBBITCOIN_DATABASE_PRIMITIVES_ELEMENT_IPP
2121
22- #include < algorithm >
23- #include < utility >
22+ #include < iterator >
23+ #include < cstring >
2424#include < bitcoin/system.hpp>
2525#include < bitcoin/database/define.hpp>
2626
@@ -78,13 +78,13 @@ Link CLASS::to_match(Link link) const NOEXCEPT
7878 // element key matches (found)
7979 const auto key_ptr = std::next (offset, Link::size);
8080 if (is_zero (std::memcmp (key_.data (), key_ptr, array_count<Key>)))
81- return std::move ( link) ;
81+ return link;
8282
8383 // set next element link (loop)
8484 link = system::unsafe_array_cast<uint8_t , Link::size>(offset);
8585 }
8686
87- return std::move ( link) ;
87+ return link;
8888}
8989
9090TEMPLATE
@@ -100,7 +100,7 @@ Link CLASS::to_next(Link link) const NOEXCEPT
100100 // set next element link (loop)
101101 link = { system::unsafe_array_cast<uint8_t , Link::size>(offset) };
102102 if (link.is_terminal ())
103- return std::move ( link) ;
103+ return link;
104104
105105 // get next element offset (fault)
106106 offset = memory_->offset (manager::link_to_position (link));
@@ -110,10 +110,10 @@ Link CLASS::to_next(Link link) const NOEXCEPT
110110 // next element key matches (found)
111111 const auto key_ptr = std::next (offset, Link::size);
112112 if (is_zero (std::memcmp (key_.data (), key_ptr, array_count<Key>)))
113- return std::move ( link) ;
113+ return link;
114114 }
115115
116- return std::move ( link) ;
116+ return link;
117117}
118118
119119} // namespace database
0 commit comments