mirror of https://github.com/Icinga/icinga2.git
parent
0d3ce60e4f
commit
5438c86e76
|
@ -23,12 +23,12 @@ using namespace icinga;
|
|||
|
||||
long Convert::ToLong(const String& val)
|
||||
{
|
||||
return strtol(val.CStr(), NULL, 10);
|
||||
return boost::lexical_cast<long>(val);
|
||||
}
|
||||
|
||||
double Convert::ToDouble(const String& val)
|
||||
{
|
||||
return strtod(val.CStr(), NULL);
|
||||
return boost::lexical_cast<double>(val);
|
||||
}
|
||||
|
||||
bool Convert::ToBool(const String& val)
|
||||
|
|
Loading…
Reference in New Issue