Parameters and move semanticsI think I've actually got a handle on this now - thank you very much!
Parameters and move semantics[quote]Have you looked at std::string_view?[/quote] Oh cool, so I should use this in every single in...
Parameters and move semanticsHmm so I'm thinking I should make a third overload for passing literals? [code] std::string error; ...
Parameters and move semanticsHi, [quote]The std::string object would still have to copy the char data when constructed.[/quote] ...
Parameters and move semanticsHere's some error logging code in my program (basically): [code] void SetError(std::string&& arg...