Fixed bug which was introduced due to boost removal
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user