[Issue 12024] [REG DMD2.065-b2] template instantiation for swap(SysTime, SysTime) fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 29 04:14:41 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12024



--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-01-29 14:14:37 EET ---
> SysTime contains a rebindable, and Rebindable contains an immutable, and swap
can't make the choice to mutate immutable.

Actually, it contains a union between mutable and immutable. And unions imply
that all guarantees are off.

So, maybe the solution would be to make swap allow an immutable field if it's
in an union with a mutable field?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list