diff --git a/src/db/plugins/simple/Song.hxx b/src/db/plugins/simple/Song.hxx index 75c67583b..8df7d9496 100644 --- a/src/db/plugins/simple/Song.hxx +++ b/src/db/plugins/simple/Song.hxx @@ -93,6 +93,10 @@ struct Song { */ std::string uri; + template + Song(U &&_uri, Directory &_parent) noexcept + :parent(_parent), uri(std::forward(_uri)) {} + Song(StringView _uri, Directory &parent) noexcept; static SongPtr NewFrom(DetachedSong &&other, Directory &parent) noexcept;