[Issue 10460] std.algorithm: some of algorithms don't use 'auto ref' for front

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 29 13:55:38 PDT 2014


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

--- Comment #2 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/5e0532b9e7d0a67567db0c7c9a3b541c829c75ed
Fix Issue 10460 - auto ref for Union, SetDifference, SetSymmetricDifference

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

The rearrangement of SetSymmetricDifference.front was needed since auto ref
doesn't deduce correctly when there are multiple return statements (by design),
so a single return statement with the ternary operator was used.

https://github.com/D-Programming-Language/phobos/commit/b61d9fa6844632ced1758f75ba2812c057d34bb8
Merge pull request #2461 from fb-pja/bug10460

Fix Issue 10460 - auto ref Union, SetDifference, SetSymmetricDifference

--


More information about the Digitalmars-d-bugs mailing list