summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2021-11-23 10:11:16 -0500
committerNat Goodspeed <nat@lindenlab.com>2021-11-23 10:11:16 -0500
commitadc2666dbb2444194a5df84711207def7eba074c (patch)
treee5c6771378e14a4ce50c769046c50a66715c8b7c /indra
parent3b8fc6b9b1232ea8cf224805c12f16e7997f21c5 (diff)
SL-16094: Tweak llstring merge
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/stringize.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/stringize.h b/indra/llcommon/stringize.h
index 8501beb16d..12df693910 100644
--- a/indra/llcommon/stringize.h
+++ b/indra/llcommon/stringize.h
@@ -53,7 +53,7 @@ void stream_to(std::basic_ostream<CHARTYPE>& out) {}
template <typename CHARTYPE, typename T, typename... Items>
void stream_to(std::basic_ostream<CHARTYPE>& out, T&& item, Items&&... items)
{
- out << std::move(item);
+ out << std::forward<T>(item);
stream_to(out, std::forward<Items>(items)...);
}
@@ -113,8 +113,8 @@ struct gstringize_impl<OUTCHAR, INCHAR*>
template <typename CHARTYPE, typename T>
auto gstringize(T&& item)
{
- // use decay<T> so we don't require separate specializations for T, const
- // T, T&, const T& ...
+ // use decay<T> so we don't require separate specializations
+ // for T, const T, T&, const T& ...
return gstringize_impl<CHARTYPE, std::decay_t<T>>()(std::forward<T>(item));
}