Skip to content

Commit

Permalink
fix #if
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser authored Jan 18, 2025
1 parent 764c31b commit 224d6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class buffer {

void free_memory() {
if (m_buffer != reinterpret_cast<T*>(m_initial_buffer))
#if __cplusplus >= 201402L
#if __cpp_sized_deallocation >= 201309L
operator delete[](reinterpret_cast<char*>(m_buffer), sizeof(T) * m_capacity);
#else
delete[] reinterpret_cast<char*>(m_buffer);
Expand Down

0 comments on commit 224d6a7

Please sign in to comment.