Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
saagarjha
4y ago
0 comments
Save
Share
> If you are using C strings in C++ you are either doing something incredibly low level or don't care about performance at all.
…or interoperating with C code?
0 comments
1 comments · 1 top-level
top
newest
oldest
sseagull
4y ago
But the temporary copy only happens going from const char * to std::string, so the C code would have to be calling C++ code.
std::string to const char doesn’t (usually?) require copying.
j
/
k
navigate · click thread line to collapse