[Issue 13728] std.conv.to for POD structs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 17 13:56:42 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13728

John Colvin <john.loughran.colvin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin at gmail.
                   |                            |com

--- Comment #2 from John Colvin <john.loughran.colvin at gmail.com> ---
Why not non-POD structs and classes too?

Also, what do you think about situations where only a few of the members are
set:

struct A { int a, b, c; }
auto a = A(3, 4);

is completely valid, but would you want to allow

auto a = [3, 4].to!A;

?

--


More information about the Digitalmars-d-bugs mailing list