Update the string functions to work with all string types

Bug #1100358 reported by Matt Jones
6
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";
}

Revision history for this message
Matt Jones (workhorsy) wrote :
description: updated
Changed in dlanghelper:
status: Confirmed → Fix Committed
Matt Jones (workhorsy)
Changed in dlanghelper:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.