From ee3ba83d6d0e92e14647366d49d1fa238c5a9d5f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 17 Dec 2022 23:11:21 -0800 Subject: Avoid inlining LoadedHrtf's destructor --- core/hrtf.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/hrtf.cpp') diff --git a/core/hrtf.cpp b/core/hrtf.cpp index 9d0f83ba..310b7a80 100644 --- a/core/hrtf.cpp +++ b/core/hrtf.cpp @@ -56,7 +56,14 @@ struct LoadedHrtf { LoadedHrtf(T&& name, U&& entry) : mFilename{std::forward(name)}, mEntry{std::forward(entry)} { } + LoadedHrtf(LoadedHrtf&&) = default; + /* GCC warns when it tries to inline this. */ + ~LoadedHrtf(); + + LoadedHrtf& operator=(LoadedHrtf&&) = default; }; +LoadedHrtf::~LoadedHrtf() = default; + /* Data set limits must be the same as or more flexible than those defined in * the makemhr utility. -- cgit v1.2.3