Commit 11ec46e1 authored by Wieland Morgenstern's avatar Wieland Morgenstern

noexcept Audio samples to make std::map<..., Audio::Samples> work on Visual Studio 2017

parent 13d22bf5
...@@ -327,7 +327,7 @@ class VS_EXPORT Samples { ...@@ -327,7 +327,7 @@ class VS_EXPORT Samples {
* @brief Copy constructor with move semantics * @brief Copy constructor with move semantics
* @param s The object to copy * @param s The object to copy
*/ */
Samples(Samples&& s); Samples(Samples&& s) noexcept;
/** /**
* @brief Copying audio samples is undefined * @brief Copying audio samples is undefined
......
...@@ -53,7 +53,7 @@ Samples::Samples(const SamplingRate r, const SamplingDepth d, const ChannelLayou ...@@ -53,7 +53,7 @@ Samples::Samples(const SamplingRate r, const SamplingDepth d, const ChannelLayou
Samples::~Samples() { delete_(samples); } Samples::~Samples() { delete_(samples); }
Samples::Samples(Samples&& o) : depth(o.depth), rate(o.rate), layout(o.layout) { Samples::Samples(Samples&& o) noexcept : depth(o.depth), rate(o.rate), layout(o.layout) {
// steal that music // steal that music
nbSamples = o.nbSamples; nbSamples = o.nbSamples;
timestamp = o.timestamp; timestamp = o.timestamp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment