Calling C++ code with pointer** argument

Kagamin via Digitalmars-d-learn digitalmars-d-learn at
Wed Jun 1 09:16:26 PDT 2016

On Wednesday, 1 June 2016 at 07:29:56 UTC, abad wrote:
> That does work, though I have to explicitly cast it in my 
> caller as well.
> Like this:
> doesNotLink(cast(const(char)**)baz2);
> It's a bit troublesome as my code will include quite a lot of 
> calls like this.
> Casting is not necessary with the method call with the single 
> pointer argument, as it seems to get const'ed automatically.

Can you declare it as const char*const* one the C++ side?

More information about the Digitalmars-d-learn mailing list