opCast and std.conv.to

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 22 05:04:54 PST 2015


I tried to override the opCast operator in a class to be able to 
explicitly convert the class to a string, but to!string just 
returns the name of the class.
Do opCast and to! together not work with strings and does that 
mean that i have to use alias this?


More information about the Digitalmars-d-learn mailing list