The stream::open() functions require c_str()

This commit is contained in:
Joakim Hove
2015-02-12 17:25:40 +01:00
parent eea8bb23a9
commit c021b66c18
2 changed files with 2 additions and 2 deletions

View File

@@ -292,7 +292,7 @@ namespace Opm
const std::string& filename,
const int desiredResportStep )
{
std::ifstream restorefile( filename );
std::ifstream restorefile( filename.c_str() );
if( restorefile )
{
std::cout << "============================================================================"<<std::endl;

View File

@@ -263,7 +263,7 @@ namespace Opm
std::string backupfilename = param.getDefault("backupfile", std::string("") );
if( ! backupfilename.empty() )
{
backupfile_.open( backupfilename );
backupfile_.open( backupfilename.c_str() );
}
}
}