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;
|
||||
}
|
||||
|
||||
bool is_linked() const noexcept {
|
||||
static_assert(mode >= IntrusiveHookMode::TRACK);
|
||||
|
||||
bool is_linked() const noexcept
|
||||
requires(mode >= IntrusiveHookMode::TRACK) {
|
||||
return siblings.next != nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue