Commit 6a138472 authored by Max Kellermann's avatar Max Kellermann

db/simple/Song: add template constructor

parent cbe7d052
......@@ -93,6 +93,10 @@ struct Song {
*/
std::string uri;
template<typename U>
Song(U &&_uri, Directory &_parent) noexcept
:parent(_parent), uri(std::forward<U>(_uri)) {}
Song(StringView _uri, Directory &parent) noexcept;
static SongPtr NewFrom(DetachedSong &&other, Directory &parent) noexcept;
......
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