http://d.puremagic.com/issues/show_bug.cgi?id=7490
Summary: std.array.array(std.bitmanip.BitArray) too
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2012-02-12 13:23:54 PST ---
It seems std.array.array() is not able to convert a std.bitmanip.BitArray into
a dynamic array:
import std.array, std.bitmanip;
void main() {
BitArray ba;
ba.length = 10;
foreach (b; ba) {} // OK
array(ba); // error
}
DMD 2.058beta:
test.d(6): Error: template std.array.array(Range) if (isIterable!(Range) &&
!isNarrowString!(Range)) does not match any function template declaration
test.d(6): Error: template std.array.array(Range) if (isIterable!(Range) &&
!isNarrowString!(Range)) cannot deduce template function from argument types
!()(BitArray)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------