Skip to content

Commit 28ae277

Browse files
committed
Fix lack of typename.
1 parent dbd1b2a commit 28ae277

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/bitcoin/database/primitives/arrayhead.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ class arrayhead
7171
bool push(const Link& link, const Link& index) NOEXCEPT;
7272

7373
private:
74-
static_assert(std::atomic<Link::integer>::is_always_lock_free);
75-
static constexpr auto size_ = Align ? sizeof(Link::integer) : Link::size;
7674
using integer = Link::integer;
75+
static_assert(std::atomic<integer>::is_always_lock_free);
76+
static constexpr auto size_ = Align ? sizeof(integer) : Link::size;
7777

7878
// Body does not use padded link size.
7979
using body = manager<Link, system::data_array<zero>, Link::size>;

include/bitcoin/database/primitives/hashhead.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ class hashhead
6565
inline bool push(const Link& current, bytes& next, const Link& index) NOEXCEPT;
6666

6767
private:
68-
static_assert(std::atomic<Link::integer>::is_always_lock_free);
69-
static constexpr auto size_ = Align ? sizeof(Link::integer) : Link::size;
7068
using integer = Link::integer;
69+
static_assert(std::atomic<integer>::is_always_lock_free);
70+
static constexpr auto size_ = Align ? sizeof(integer) : Link::size;
7171

7272
template <size_t Bytes>
7373
static inline auto& to_array(memory::iterator it) NOEXCEPT

0 commit comments

Comments
 (0)