From 846759e1768084772383ca028e2701bab572a61c Mon Sep 17 00:00:00 2001 From: Sven Fink Date: Wed, 14 Oct 2020 14:19:59 +0200 Subject: [PATCH] buffer should declare virtual dtor --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 2e1ae4b6..657ab4f9 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -670,7 +670,7 @@ template class buffer { size_(sz), capacity_(cap) {} - ~buffer() = default; + virtual ~buffer() = default; /** Sets the buffer data and capacity. */ void set(T* buf_data, size_t buf_capacity) FMT_NOEXCEPT {