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: nob...@puremagic.com
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@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: -------

Reply via email to