File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ namespace database {
3232TEMPLATE
3333CLASS::hashhead (storage& head, size_t bits) NOEXCEPT
3434 : file_(head),
35- buckets_ (system::power2<Link:: integer>(bits)),
36- mask_(system::unmask_right<Link:: integer>(bits))
35+ buckets_ (system::power2<integer>(bits)),
36+ mask_(system::unmask_right<integer>(bits))
3737{
3838}
3939
@@ -110,8 +110,8 @@ inline Link CLASS::index(const Key& key) const NOEXCEPT
110110 BC_ASSERT_MSG (is_nonzero (buckets_), " hash table requires buckets" );
111111
112112 // unique_hash assumes sufficient uniqueness in low order key bytes.
113- const auto index = possible_narrow_cast<Link:: integer>(unique_hash (key));
114- return bit_and<Link:: integer>(mask_, index);
113+ const auto index = possible_narrow_cast<integer>(unique_hash (key));
114+ return bit_and<integer>(mask_, index);
115115}
116116
117117TEMPLATE
Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ class hashhead
6464 inline bool push (const bytes& current, bytes& next, const Link& index) NOEXCEPT;
6565
6666private:
67+ using integer = Link::integer;
68+
6769 template <size_t Bytes>
6870 static auto & array_cast (memory::iterator buffer) NOEXCEPT
6971 {
You can’t perform that action at this time.
0 commit comments