From 6a138472878246ccaf4acf646b22115da3a0ae00 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Sep 2019 11:32:42 +0200 Subject: [PATCH] db/simple/Song: add template constructor --- src/db/plugins/simple/Song.hxx | 4 ++++ 1 file changed, 4 insertions(+) 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;