On Monday, 30 April 2018 at 01:07:35 UTC, NewUser wrote:
Hi,
How do I pass a d string to a c++ std::string?
NewUser
There's https://github.com/dlang/druntime/pull/1316 (an attempt
at making C++ standard library)
On Monday, 30 April 2018 at 10:48:40 UTC, Jonathan M Davis wrote:
On Monday, April 30, 2018 01:07:35 NewUser via
Digitalmars-d-learn wrote:
Hi,
How do I pass a d string to a c++ std::string?
The most straightforward way would be to create a C or C++
function which accepts const char* and
On Monday, April 30, 2018 01:07:35 NewUser via Digitalmars-d-learn wrote:
> Hi,
>
> How do I pass a d string to a c++ std::string?
The most straightforward way would be to create a C or C++ function which
accepts const char* and size_t and then creates the std::string, in which
case you pass it
On Monday, 30 April 2018 at 01:07:35 UTC, NewUser wrote:
Hi,
How do I pass a d string to a c++ std::string?
NewUser
There is no trivial way to do this as far as I'm aware, mostly
due to C++ mangling issues in DMD. You can try calypso [0] or dpp
[1], which might work. You can also see this
Hi,
How do I pass a d string to a c++ std::string?
NewUser