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:
Markus Blatt 2016-05-27 08:59:00 +00:00
parent ef2125f39e
commit dbf425411f
3 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,8 @@
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <fstream>
namespace namespace
{ {
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param) void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)

View File

@ -54,7 +54,7 @@
#include <iostream> #include <iostream>
#include <vector> #include <vector>
#include <numeric> #include <numeric>
#include <fstream>
namespace namespace
{ {

View File

@ -54,7 +54,7 @@
#include <vector> #include <vector>
#include <numeric> #include <numeric>
#include <iterator> #include <iterator>
#include <fstream>
namespace namespace
{ {