Skip to content

Commit

Permalink
another use of std::move to avoid expenive copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 21, 2016
1 parent 23cae0b commit f56b2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/librarylink.cpp.in
Expand Up @@ -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);
}
Expand Down

0 comments on commit f56b2f3

Please sign in to comment.