Browse Source

FFT: Add move ops which would otherwise be implicitly deleted

tags/2021-05-28
reuk 4 years ago
parent
commit
29c4ef36ee
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
2 changed files with 11 additions and 1 deletions
  1. +5
    -1
      modules/juce_dsp/frequency/juce_FFT.cpp
  2. +6
    -0
      modules/juce_dsp/frequency/juce_FFT.h

+ 5
- 1
modules/juce_dsp/frequency/juce_FFT.cpp View File

@@ -950,7 +950,11 @@ FFT::FFT (int order)
{
}
FFT::~FFT() {}
FFT::FFT (FFT&&) noexcept = default;
FFT& FFT::operator= (FFT&&) noexcept = default;
FFT::~FFT() = default;
void FFT::perform (const Complex<float>* input, Complex<float>* output, bool inverse) const noexcept
{


+ 6
- 0
modules/juce_dsp/frequency/juce_FFT.h View File

@@ -50,6 +50,12 @@ public:
*/
FFT (int order);
/** Move constructor. */
FFT (FFT&&) noexcept;
/** Move assignment operator. */
FFT& operator= (FFT&&) noexcept;
/** Destructor. */
~FFT();


Loading…
Cancel
Save