char[][] to std::vector<std::string> - DIP or dmd-issue?

Dennis Ritchie via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 13 11:15:29 PDT 2015


On Saturday, 13 June 2015 at 17:39:25 UTC, Kagamin wrote:
> Type is probably possible, though conversion method will be 
> simpler. You can even try to write a specialization of `to` for 
> multidimentional arrays if it doesn't work.

It appears the problem can be solved by creating specifications 
.to!strArray, which will determine the dimension of the array and 
convert it to char[][][][]...

Actually, I will file issue `std.conv` in Phobos to add such 
specifications. It will suit me.

Thanks to all. I just didn't know that such a conversion is 
running.


More information about the Digitalmars-d-learn mailing list