You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead take strings just as std::string, and std::move then locally. That way if the call site uses an rvalue, no copy is ever done, it's moved all the way.
The text was updated successfully, but these errors were encountered:
jeanlauliac
changed the title
get of const & std::string pattern
get rid of const & std::string pattern
Apr 13, 2018
Instead take strings just as
std::string
, andstd::move
then locally. That way if the call site uses an rvalue, no copy is ever done, it's moved all the way.The text was updated successfully, but these errors were encountered: