mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 23:20:12 -05:00
Merge pull request #306 from joakim-hove/stream-open-c_str
The stream::open() functions require c_str()
This commit is contained in:
commit
15aa7ec2ab
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user