Problem with std.array(std.regex.splitter())

bearophile bearophileHUGS at lycos.com
Sun Aug 8 15:50:53 PDT 2010


This D2 code:

import std.regex: splitter, regex;
import std.array: array;
void main() {
    array(splitter(", abc, de", regex(", *")));
}


Gives the errors:

test.d(4): Error: template std.array.array(Range) if (isForwardRange!(Range)) does not match any function template declaration
test.d(4): Error: template std.array.array(Range) if (isForwardRange!(Range)) cannot deduce template function from argument types !()(Splitter!(string))

Do you know what's wrong in it?

Bye and thank you,
bearophile


More information about the Digitalmars-d-learn mailing list