Skip to content

Commit

Permalink
Fix noexcept error in freelist
Browse files Browse the repository at this point in the history
  • Loading branch information
KredeGC committed Jun 23, 2023
1 parent b326dae commit 71a6784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ktl/allocators/freelist.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace ktl
freelist(const freelist&) = delete;

freelist(freelist&& other)
noexcept(std::is_nothrow_move_constructible<Alloc>) :
noexcept(std::is_nothrow_move_constructible_v<Alloc>) :
m_Alloc(std::move(other.m_Alloc)),
m_Free(other.m_Free)
{
Expand All @@ -75,7 +75,7 @@ namespace ktl
freelist& operator=(const freelist&) = delete;

freelist& operator=(freelist&& rhs)
noexcept(std::is_nothrow_move_constructible_v<Alloc>)
noexcept(std::is_nothrow_move_assignable_v<Alloc>)
{
release();

Expand Down

0 comments on commit 71a6784

Please sign in to comment.