Union redux

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 2 15:14:12 PDT 2015


On 6/2/15 2:57 PM, Timon Gehr wrote:
> OK. What about copying in instead of out?

If the appropriate type has already been constructed, assignment 
suffices. Otherwise, emplace(&target, source) is needed. -- Andrei


More information about the Digitalmars-d mailing list