util/IntrusiveList: convert static_assert to concept check
This commit is contained in:
parent
73708e7be7
commit
ebf1fc7ca4
@ -72,9 +72,8 @@ public:
|
|||||||
siblings.next = nullptr;
|
siblings.next = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_linked() const noexcept {
|
bool is_linked() const noexcept
|
||||||
static_assert(mode >= IntrusiveHookMode::TRACK);
|
requires(mode >= IntrusiveHookMode::TRACK) {
|
||||||
|
|
||||||
return siblings.next != nullptr;
|
return siblings.next != nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user