mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
09f3f9b41a
The class NonCopyable is, like the name says, supposed to disallow
copying. But should it allow moving?
For a long time, NonCopyable used to not allow moving. (It declared
a deleted copy constructor and assigment operator without declaring
a move constructor and assignment operator, making the compiler
implicitly delete the move constructor and assignment operator.)
That's fine if the classes that inherit from NonCopyable don't need
to be movable or if writing the move constructor and assignment
operator by hand is fine, but that's not the case for all classes,
as I discovered when I was working on the DirectoryBlob PR.
Because of that, I decided to make NonCopyable movable in
|
||
---|---|---|
.. | ||
AlsaSoundStream.cpp | ||
AlsaSoundStream.h | ||
AudioCommon.cpp | ||
AudioCommon.h | ||
AudioCommon.vcxproj | ||
AudioCommon.vcxproj.filters | ||
AudioStretcher.cpp | ||
AudioStretcher.h | ||
CMakeLists.txt | ||
CubebStream.cpp | ||
CubebStream.h | ||
CubebUtils.cpp | ||
CubebUtils.h | ||
DPL2Decoder.cpp | ||
DPL2Decoder.h | ||
Mixer.cpp | ||
Mixer.h | ||
NullSoundStream.cpp | ||
NullSoundStream.h | ||
OpenALStream.cpp | ||
OpenALStream.h | ||
OpenSLESStream.cpp | ||
OpenSLESStream.h | ||
PulseAudioStream.cpp | ||
PulseAudioStream.h | ||
SoundStream.h | ||
WaveFile.cpp | ||
WaveFile.h | ||
XAudio2_7Stream.cpp | ||
XAudio2_7Stream.h | ||
XAudio2Stream.cpp | ||
XAudio2Stream.h |