From aba766f487640bd96e3d2b5fce59240cf14246fa Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 30 Sep 2021 21:00:31 +0100 Subject: [Minor] Allow to construct an empty string with a filter --- src/libmime/mime_string.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/libmime/mime_string.hxx b/src/libmime/mime_string.hxx index 63522e8a0..259788cd5 100644 --- a/src/libmime/mime_string.hxx +++ b/src/libmime/mime_string.hxx @@ -265,6 +265,8 @@ public: /* Ctors */ basic_mime_string() noexcept : Allocator() {} explicit basic_mime_string(const Allocator& alloc) noexcept : Allocator(alloc) {} + explicit basic_mime_string(filter_type &&filt, const Allocator& alloc = Allocator()) noexcept : + Allocator(alloc), filter_func(std::forward(filt)) {} basic_mime_string(const CharT* str, std::size_t sz, const Allocator& alloc = Allocator()) noexcept : Allocator(alloc) -- cgit v1.2.3