mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-11 08:15:10 -04:00
Remove noexcept specifications
std::function(std::function&&) is only noexcept in libc++, not libstdc++, so calculated signatire of move ctor/assignment of AudioSpec won't match specification
This commit is contained in:
parent
4e68627f12
commit
fcf0302213
@ -45,8 +45,8 @@ public:
|
||||
AudioSpec(int freq, SDL_AudioFormat format, Uint8 channels, Uint16 samples, AudioCallback&& callback);
|
||||
~AudioSpec();
|
||||
|
||||
AudioSpec(AudioSpec&& other) noexcept;
|
||||
AudioSpec& operator=(AudioSpec&& other) noexcept;
|
||||
AudioSpec(AudioSpec&& other);
|
||||
AudioSpec& operator=(AudioSpec&& other);
|
||||
AudioSpec(const AudioSpec& other) = delete;
|
||||
AudioSpec& operator=(const AudioSpec& other) = delete;
|
||||
|
||||
|
@ -44,8 +44,8 @@ AudioSpec::AudioSpec(int freq, SDL_AudioFormat format, Uint8 channels, Uint16 sa
|
||||
AudioSpec::~AudioSpec() {
|
||||
}
|
||||
|
||||
AudioSpec::AudioSpec(AudioSpec&&) noexcept = default;
|
||||
AudioSpec& AudioSpec::operator=(AudioSpec&&) noexcept = default;
|
||||
AudioSpec::AudioSpec(AudioSpec&&) = default;
|
||||
AudioSpec& AudioSpec::operator=(AudioSpec&&) = default;
|
||||
|
||||
void AudioSpec::ChangeCallback(AudioCallback&& callback) {
|
||||
callback_ = callback;
|
||||
|
Loading…
x
Reference in New Issue
Block a user