[Issue 6447] New: iota(BigInt) too
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 6 19:56:56 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6447
Summary: iota(BigInt) 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 2011-08-06 19:56:56 PDT ---
Sometimes I'd like to generate a range of bigints too:
Enhancement:
import std.bigint: BigInt;
import std.range: iota;
void main() {
auto x = iota(BigInt(10));
}
Currently DMD gives:
...\std\range.d(4028): Error: template std.range.iota(B,E,S) if
((isIntegral!(CommonType!(B,E)) || isPointer!(CommonType!(B,E))) &&
isIntegral!(S)) does not match any function template declaration
...\std\range.d(4028): Error: template std.range.iota(B,E,S) if
((isIntegral!(CommonType!(B,E)) || isPointer!(CommonType!(B,E))) &&
isIntegral!(S)) cannot deduce template function from argument types
!()(BigInt,BigInt)
test.d(4): Error: template instance std.range.iota!(BigInt) error instantiating
--
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