Commit 36a67827 authored by Max Kellermann's avatar Max Kellermann

storage/composite: no "=default" in constructor

Closes https://github.com/MusicPlayerDaemon/MPD/pull/739 (essentially the same, but with a proper explanation)
parent d4a6d647
......@@ -179,7 +179,15 @@ CompositeStorage::Directory::MapToRelativeUTF8(std::string &buffer,
return false;
}
CompositeStorage::CompositeStorage() noexcept = default;
CompositeStorage::CompositeStorage() noexcept
{
/* note: no "=default" here because members of this class are
allowed to throw during construction according to the C++
standard (e.g. std::map), but we choose to ignore these
exceptions; if construction of std::map goes wrong, MPD has
no chance to work at all, so it's ok to std::terminate() */
}
CompositeStorage::~CompositeStorage() = default;
Storage *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment