Forwarding the same value to two functions #3976
seeman1978
started this conversation in
General
Replies: 1 comment
-
This was fixed in December. #3889 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
template
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(std::forward(args)...));
concat_into(str, std::forward(args)...);
return str;
}
The behavior of std::forward can be equivalent to the behavior of std::move.
It is not safe to forward a parameter more than once.
Beta Was this translation helpful? Give feedback.
All reactions