[Issue 8940] Able to modify const/immutable with passing to a templated function by `ref`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 3 05:09:52 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8940



--- Comment #2 from github-bugzilla at puremagic.com 2012-11-03 05:09:50 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/02c301feaafebe754a5298b60394921e32938148
Supplemental fix for Issue 8940 - Able to modify const/immutable with passing
to a templated function by `ref`

splitUnitsFromHNSecs accepts ref long, so it should not be called with
immutable long.
But' it has been accidentally accepted by issue 8940.

https://github.com/D-Programming-Language/phobos/commit/941b46a0cc12ba6f5633c86f06f3acf3fd448e72
Merge pull request #921 from 9rnsr/fix8940

Supplemental fix for Issue 8940 - Able to modify const/immutable with passing
to a templated function by `ref`

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


More information about the Digitalmars-d-bugs mailing list