Passing to c++ std::string and vector

Uknown sireeshkodali1 at gmail.com
Mon Apr 30 10:05:25 UTC 2018


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 PR[2]

[0]: https://wiki.dlang.org/Calypso
[1]: 
https://forum.dlang.org/post/kbcdppawjtcdkdtdzwwp@forum.dlang.org
[2]: https://github.com/dlang/druntime/pull/1316


More information about the Digitalmars-d-learn mailing list