http://d.puremagic.com/issues/show_bug.cgi?id=11188
--- Comment #8 from Simen Kjaeraas <simen.kja...@gmail.com> 2013-11-03 13:25:17 PST --- Adding this overload to std.math is a workaround for the problems with shared: Num abs(Num)(shared Num x) @safe pure nothrow if (is(typeof(abs(Num.init))) && is(typeof({Num n = x;}))) { Num tmp = x; return abs(tmp); } However, given that shared is currently rather ill-specified, and possibly will change dramatically relatively soon (let's hope so), and that this is a workaround for a single function only, I feel it's better to leave the workaround out for the time being, and wait for a real solution. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------