Passing string from D to c++

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Wed Jul 31 07:23:38 PDT 2013


On Wednesday, 31 July 2013 at 07:17:15 UTC, deadalnix wrote:
> In C++, std::string own its own copy of the string. So it is 
> safe to pass a D const char* to the constructor.

I thought the discussion was about:

     void someFun(std::string arg) { ...}

Pass D string to someFun. I do not believe const(char) * is valid.


More information about the Digitalmars-d mailing list