From a75d35bbb06f74e58cb2232d4ca2ce47950f08cd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 10 Dec 2021 22:07:20 -0800 Subject: Use a vector in BFormatDec instead of FlexArray FlexArray would be better since it's not likely to use much memory for the array, but the std::unique_ptr makes BFormatDec a non-standard layout, causing GCC and Clang to complain. --- core/bformatdec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/bformatdec.cpp') diff --git a/core/bformatdec.cpp b/core/bformatdec.cpp index e3f8eaef..ed00566e 100644 --- a/core/bformatdec.cpp +++ b/core/bformatdec.cpp @@ -193,6 +193,6 @@ std::unique_ptr BFormatDec::Create(const size_t inchans, const al::span coeffs, const al::span coeffslf, const float xover_f0norm, std::unique_ptr stablizer) { - return std::unique_ptr{new(FamCount(inchans)) - BFormatDec{inchans, coeffs, coeffslf, xover_f0norm, std::move(stablizer)}}; + return std::make_unique(inchans, coeffs, coeffslf, xover_f0norm, + std::move(stablizer)); } -- cgit v1.2.3