Fixed bug which was introduced due to boost removal

This commit is contained in:
Matthias Jung
2017-02-23 19:33:39 +01:00
parent c503d0c4af
commit 4244fb8c60

View File

@@ -51,19 +51,20 @@ Configuration::Configuration()
{
}
int string2bool(string s)
bool string2bool(string s)
{
if(s=="0")
if(s.compare("0") == 0)
{
return 0;
return false;
}
else if(s=="1")
else if(s.compare("1") == 0)
{
return 1;
return true;
}
else
{
SC_REPORT_FATAL("Configuration", ("Could not convert to bool: " + s).c_str());
return false;
}
}