added raw specifier for reading

This commit is contained in:
Andrei Alexandrescu 2009-04-23 09:03:16 +00:00
parent 9ae66bb416
commit ccfe097389

View file

@ -1066,7 +1066,7 @@ result is greater than or equal to $(D max).
*/
ElementType!Range entropy(Range)(Range r) if (isInputRange!Range)
{
typeof(return) result = 0.0;
Unqual!(typeof(return)) result = 0.0;
foreach (e; r)
{
if (!e) continue;