[Issue 7490] New: std.array.array(std.bitmanip.BitArray) too
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 12 13:23:55 PST 2012
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 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: -------
More information about the Digitalmars-d-bugs
mailing list