Char* vs std::string
Posted
by Lockyer
on Stack Overflow
See other posts from Stack Overflow
or by Lockyer
Published on 2010-04-27T05:26:34Z
Indexed on
2010/04/27
5:33 UTC
Read the original article
Hit count: 351
Is there any advantage to using char*'s instead of std::string?
I know char*'s are usually defined on the stack, so we know exactly how much memory we'll use, is this actually a good argument for their use? Or is std::string better in every way?
© Stack Overflow or respective owner