Update the string functions to work with all string types
Bug #1100358 reported by
Matt Jones
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
D Lang Helper |
Fix Released
|
High
|
Unassigned |
Bug Description
Functions work like this:
public bool to_bool(string value) {
return value=="true" || value=="1";
}
But they need to be changed to work with other string types:
public bool to_bool(S)(S value)
if(isSomeString!S) {
return value=="true" || value=="1";
}
Changed in dlanghelper: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in revision: bazaar. launchpad. net/~workhorsy/ dlanghelper/ main/revision/ 70
http://