Fix incomplete type error for std::ofstream in examples
On my system I got ```c++ error: variable ‘std::ofstream file’ has initializer but incomplete type std::ofstream file(fname.str().c_str()); ``` This is fixed with this commit by including fstream. Previously, this include might have happened implicitely.
This commit is contained in:
parent
ef2125f39e
commit
dbf425411f
@ -36,6 +36,8 @@
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#include <fstream>
|
||||
|
||||
namespace
|
||||
{
|
||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
||||
|
@ -54,7 +54,7 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <numeric>
|
||||
|
||||
#include <fstream>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
@ -54,7 +54,7 @@
|
||||
#include <vector>
|
||||
#include <numeric>
|
||||
#include <iterator>
|
||||
|
||||
#include <fstream>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user