summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-03-19 01:51:20 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-03-19 01:51:20 +0000
commitf9daf9b79bd0f4923f4319e7000b0fdafe3bbf6f (patch)
treefbefe7d564797c21c07af39899fc5afd1f63158e
parentLots of perfect forwarding over const refs (diff)
downloadlibadhocutil-f9daf9b79bd0f4923f4319e7000b0fdafe3bbf6f.tar.bz2
libadhocutil-f9daf9b79bd0f4923f4319e7000b0fdafe3bbf6f.tar.xz
libadhocutil-f9daf9b79bd0f4923f4319e7000b0fdafe3bbf6f.zip
CTF get return str content by move
-rw-r--r--libadhocutil/compileTimeFormatter.h2
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.