equidamoid@lemmy.worldtoC++@programming.dev•When using command line arguments, is better to use them as c strings and interact with them using the cstring header functions?, or is better to convert them to library strings for using them?English
3·
1 year agoUse std::string_view
to sort of get the safety of std::string
without copying the contents (just in general make sure the original c string won’t get free
d or overwritten, which won’t happen to argv
in your case).
Or just std::string
and yolo, the overhead of copying the contents is negligible in your use case.
For me it’s lack of convenient hotkeys and keyboard-based navigation. Used Vimperator on FF until they killed it. Now using qutebrowser, which uses qtwebengine, wbich uses outdated chromium. Sad story.