summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-07-23 13:53:38 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-07-23 13:53:38 +0100
commitcc88fe9d8b945754c59b9fe4704ad4ec26b15125 (patch)
treeb95166f0931ecc7d492d1d8b6de670ffe9311b26
parentFixup from clang-tidy-14 (diff)
downloadlibadhocutil-cc88fe9d8b945754c59b9fe4704ad4ec26b15125.tar.bz2
libadhocutil-cc88fe9d8b945754c59b9fe4704ad4ec26b15125.tar.xz
libadhocutil-cc88fe9d8b945754c59b9fe4704ad4ec26b15125.zip
Fix bracketting to return stream string 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 2fd1f20..f8e0010 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 std::move(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.