diff --git a/ewoms/io/eclipsewriter.hh b/ewoms/io/eclipsewriter.hh index 0a727b4e8..b5b6b4c6a 100644 --- a/ewoms/io/eclipsewriter.hh +++ b/ewoms/io/eclipsewriter.hh @@ -255,7 +255,8 @@ public: const std::string &name = bufIt->first; const ScalarBuffer &buffer = *bufIt->second; - ErtKeyword bufKeyword(name, buffer); + std::shared_ptr> + bufKeyword(new ErtKeyword(name, buffer)); solution.add(bufKeyword); }