diff --git a/include/beman/lazy/detail/lazy.hpp b/include/beman/lazy/detail/lazy.hpp index e506bb9..5f13854 100644 --- a/include/beman/lazy/detail/lazy.hpp +++ b/include/beman/lazy/detail/lazy.hpp @@ -120,7 +120,15 @@ struct lazy { return ::beman::lazy::detail::coroutine_allocate(size, a...); } void operator delete(void* ptr, std::size_t size) { + #if defined(__GNUC__) +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmismatched-new-delete" +#endif return ::beman::lazy::detail::coroutine_deallocate(ptr, size); +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif } template