Adapted it for the poor stdc++ support of g++
This commit is contained in:
parent
737779f235
commit
f290f94301
2 changed files with 10 additions and 8 deletions
|
|
@ -52,18 +52,18 @@ void eoState::registerObject(eoPersistent& registrant)
|
|||
void eoState::load(const string& _filename)
|
||||
{
|
||||
ifstream is (_filename.c_str());
|
||||
|
||||
if (is.fail())
|
||||
{
|
||||
string str = "Could not open file " + _filename;
|
||||
throw runtime_error(str);
|
||||
}
|
||||
|
||||
string str;
|
||||
string name;
|
||||
|
||||
getline(is, str);
|
||||
|
||||
if (is.fail())
|
||||
{
|
||||
string str = "Could not open file " + _filename;
|
||||
throw runtime_error(str);
|
||||
}
|
||||
|
||||
while(is)
|
||||
{ // parse section header
|
||||
if (is_section(str, name))
|
||||
|
|
|
|||
Reference in a new issue