From 9e4af968db71485c8533b8541e97293c81f3bd2b Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Fri, 27 May 2016 08:59:00 +0000 Subject: [PATCH] Fix incomplete type error for std::ofstream in examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- examples/compute_initial_state.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/compute_initial_state.cpp b/examples/compute_initial_state.cpp index a2b8c2ed8..356f3f42d 100644 --- a/examples/compute_initial_state.cpp +++ b/examples/compute_initial_state.cpp @@ -36,6 +36,8 @@ #include +#include + namespace { void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)