vector crash
Steven Schveighoffer
schveiguy at gmail.com
Thu Jan 18 03:53:09 UTC 2024
On Thursday, 18 January 2024 at 03:07:13 UTC, zjh wrote:
> ```d
> import dparse.ast;
> import dparse.lexer;
> import dparse.parser : parseModule;
> import dparse.rollback_allocator : RollbackAllocator;
> import core.stdcpp.vector;
> import core.stdcpp.string;
> ...
> ```
I have no experience with using cpp from D, and I'm not sure
exactly what you are trying to do (your code is not complete),
but using `string` in this context does not mean C++ std::string,
it's a D string (`immutable(char)[]`).
Are you sure this is what you are wanting to do?
-Steve
More information about the Digitalmars-d-learn
mailing list