add uda (e.g. @csvIgnore) support in std.csv?

mw mingwu at
Tue Sep 8 04:53:26 UTC 2020


I'm trying this example:

struct Layout
     string name;
     int value;
     double other;

     Layout* parent;  // add extra pointer

auto records = text.csvReader!Layout(';');

Right now, if we add this extra pointer, the compiler will error 

/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(223): Error: 
template std.conv.toImpl cannot deduce function from argument 
types !(Layout*)(string), candidates are:

I think if we can add add uda (e.g. @csvIgnore) support in 
std.csv, it will make the library more flexible to use.


More information about the Digitalmars-d mailing list