cpplint complains with "For a static/global string constant, use a C
style string instead: "const char AppUpdate::empty_string_[]".
[runtime/string] [4]"
but a C style string doesn't work here. I don't want a particular
sequence of characters. I want a fallback *value* (specifically of
type std::string) that I can return a const reference to, that the
caller can use *after the function returns*, but the caller also
shouldn't destroy that std::string.
What should I do instead, to please cpplint?
Lei Zhang
unread,
Nov 14, 2018, 1:15:41 AM11/14/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message