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:
Dmitry Marakasov 2014-11-29 23:12:11 +03:00
parent 4e68627f12
commit fcf0302213
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;