std.path.buildPath() and string enumeration
nrgyzer
nrgyzer at gmail.com
Wed May 30 11:34:24 PDT 2012
Hi,
I've the following enumeration:
enum path : string {
log1 = "/var/log1",
log2 = "/var/log2"
}
Now... when I try to do the following:
string subDirectory = "example";
string newPath = buildPath(path.log1, subDirectory);
I get the following errors:
Error: template std.path.buildPath does not match any function template
declaration
Error: template std.path.buildPath(C) if (isSomeChar!(C)) cannot deduce
template function from argument types !()(path,string)
Error: template std.path.buildPath does not match any function template
declaration
Error: template std.path.buildPath(C) if (isSomeChar!(C)) cannot deduce
template function from argument types !()(path,string)
Is this a bug in std.path.buildPath() or is there anything I'm doing wrong?
More information about the Digitalmars-d-learn
mailing list