Revert "DetachedSong: remove explicitly-defaulted copy/move constructors"
This reverts commit 67b7d46432
.
Turns out I was wrong, and mentioning these does make a difference:
the implicit move constructor is not defined in the presence of a
user-declared destructor.
This commit is contained in:
parent
4d88a099f9
commit
1292af4768
@ -100,6 +100,11 @@ public:
|
||||
|
||||
~DetachedSong();
|
||||
|
||||
/* these are declared because the user-defined destructor
|
||||
above prevents them from being generated implicitly */
|
||||
explicit DetachedSong(const DetachedSong &) = default;
|
||||
DetachedSong(DetachedSong &&) = default;
|
||||
|
||||
gcc_pure
|
||||
const char *GetURI() const {
|
||||
return uri.c_str();
|
||||
|
Loading…
Reference in New Issue
Block a user