From f56b2f31df3ee71eb674e9d10ba72f830d342741 Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Sun, 21 Aug 2016 11:05:41 +0200 Subject: [PATCH] another use of std::move to avoid expenive copy --- templates/librarylink.cpp.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/librarylink.cpp.in b/templates/librarylink.cpp.in index b725defce..66c1d75f2 100644 --- a/templates/librarylink.cpp.in +++ b/templates/librarylink.cpp.in @@ -668,7 +668,7 @@ DLLEXPORT int FS@ModelName@CalculateSpectrum( check_spectrum(data, link); put_spectrum(data.model, link); - handles[hid] = data; + handles[hid] = std::move(data); } catch (const flexiblesusy::Error&) { put_error_output(link); }