C++ developer choices in open source projects

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 29 13:07:38 PDT 2014


On 10/29/2014 12:34 PM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> 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)

There are still two string types, something you can't quite escape dealing with.


More information about the Digitalmars-d mailing list