[Issue 7679] New: std.regex.split and splitter don't work w/ ctRegex

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 10 06:39:38 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7679

           Summary: std.regex.split and splitter don't work w/ ctRegex
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: dsimcha at yahoo.com


--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2012-03-10 06:39:43 PST ---
Looks like it's just a constraint issue.

import std.regex;

void main() {
    enum re = ctRegex!".";
    auto str = "a.b";
    std.regex.splitter(str, re);
}

test.d(6): Error: template std.regex.splitter(Range,RegEx) if
(is(BasicElementOf!(Range) : dchar) && is(RegEx ==
Regex!(BasicElementOf!(Range)))) does not match any function template
declaration
test.d(6): Error: template std.regex.splitter(Range,RegEx) if
(is(BasicElementOf!(Range) : dchar) && is(RegEx ==
Regex!(BasicElementOf!(Range)))) cannot deduce template function from argument
types !()(string,StaticRegex!(char))

-- 
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