db/simple/Song: add template constructor
This commit is contained in:
parent
cbe7d052e8
commit
6a13847287
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user