On Wed, 19 Oct 2011 14:31:20 -0400, Piotr Szturmaj <bncr...@jadamspam.pl> wrote:
Piotr Szturmaj:I have written a simple conversion template for tuples, structs and classes:This is only the part to complement universal range/array to tuple/struct/class conversion. It may be useful in mapping runtime fields like database rows or CSV lines onto objects. I think Phobos needs a common solution for that.
My proposed improvement to std.variant handles duck-typing style conversions between values.