diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-03-19 01:51:20 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-03-19 01:51:20 +0000 |
commit | f9daf9b79bd0f4923f4319e7000b0fdafe3bbf6f (patch) | |
tree | fbefe7d564797c21c07af39899fc5afd1f63158e | |
parent | Lots of perfect forwarding over const refs (diff) | |
download | libadhocutil-f9daf9b79bd0f4923f4319e7000b0fdafe3bbf6f.tar.bz2 libadhocutil-f9daf9b79bd0f4923f4319e7000b0fdafe3bbf6f.tar.xz libadhocutil-f9daf9b79bd0f4923f4319e7000b0fdafe3bbf6f.zip |
CTF get return str content by move
-rw-r--r-- | libadhocutil/compileTimeFormatter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libadhocutil/compileTimeFormatter.h b/libadhocutil/compileTimeFormatter.h index e13328c..2fd1f20 100644 --- a/libadhocutil/compileTimeFormatter.h +++ b/libadhocutil/compileTimeFormatter.h @@ -169,7 +169,7 @@ namespace AdHoc { get(Pn &&... pn) { std::basic_stringstream<char_type> s; - return write(s, std::forward<Pn>(pn)...).str(); + return std::move(write(s, std::forward<Pn>(pn)...).str()); } /** * Get a string containing the result of formatting. |