diff --git a/modules/juce_dsp/maths/juce_Matrix.h b/modules/juce_dsp/maths/juce_Matrix.h index 1d49594741..a1c3c972e3 100644 --- a/modules/juce_dsp/maths/juce_Matrix.h +++ b/modules/juce_dsp/maths/juce_Matrix.h @@ -96,7 +96,7 @@ public: /** Returns an Array of 2 integers with the number of rows and columns in the matrix. */ - Array getSize() const noexcept { return {{ rows, columns }}; } + Array getSize() const noexcept { return { rows, columns }; } /** Fills the contents of the matrix with zeroes. */ void clear() noexcept { zeromem (data.begin(), sizeof (ElementType) * (size_t) data.size()); } diff --git a/modules/juce_dsp/maths/juce_Polynomial.h b/modules/juce_dsp/maths/juce_Polynomial.h index 4099436615..aa082e9fd4 100644 --- a/modules/juce_dsp/maths/juce_Polynomial.h +++ b/modules/juce_dsp/maths/juce_Polynomial.h @@ -69,17 +69,15 @@ public: /** Creates a copy of another polynomial. */ Polynomial& operator= (Polynomial&&) = default; - #if JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS || defined(DOXYGEN) /** Creates a new polynomial with coefficients by a C++11 initializer list. This function can be used in the following way: Polynomial p ({0.5f, -0.3f, 0.2f}); */ - template - Polynomial (const std::initializer_list& items) : coeffs (items) + template + Polynomial (Values... items) : coeffs (items...) { jassert (! coeffs.isEmpty()); } - #endif //============================================================================== /** Returns a single coefficient of the receiver for reading */