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: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@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: -------

Reply via email to