C++ developer choices in open source projects
via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 29 12:34:19 PDT 2014
On Wednesday, 29 October 2014 at 19:10:48 UTC, Walter Bright
wrote:
> "hello" is not an std::string. There are also quite a few
> leftover string classes in C++ from the olden daze, and people
> still cannot resist the urge to roll their own.
You can use "hello"s to get std::string in recent editions.
There's a lot of type deduction going on so if one parameter is
std::string the c string literals will be handled too: e.g:
"hello"+"world"s should yield std::string. (At least in theory)
More information about the Digitalmars-d
mailing list