Browse Source

[Minor] Allow to construct an empty string with a filter

tags/3.1
Vsevolod Stakhov 2 years ago
parent
commit
aba766f487
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/libmime/mime_string.hxx

+ 2
- 0
src/libmime/mime_string.hxx View File

@@ -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<filter_type>(filt)) {}

basic_mime_string(const CharT* str, std::size_t sz, const Allocator& alloc = Allocator()) noexcept :
Allocator(alloc)

Loading…
Cancel
Save