diff --git a/opm/parser/eclipse/Deck/ImportContainer.hpp b/opm/parser/eclipse/Deck/ImportContainer.hpp
index 6a4e02758..d8e3746e0 100644
--- a/opm/parser/eclipse/Deck/ImportContainer.hpp
+++ b/opm/parser/eclipse/Deck/ImportContainer.hpp
@@ -17,8 +17,11 @@
along with OPM. If not, see .
*/
+#ifndef IMPORT_CONTAINER_HPP
#define IMPORT_CONTAINER_HPP
+#include
+#include
#include
#include
@@ -27,6 +30,7 @@
namespace Opm {
class Parser;
+class UnitSystem;
class ImportContainer {
public:
@@ -40,3 +44,5 @@ private:
}
+
+#endif // IMPORT_CONTAINER_HPP
diff --git a/src/opm/parser/eclipse/Deck/ImportContainer.cpp b/src/opm/parser/eclipse/Deck/ImportContainer.cpp
index 812e3f9b1..4cc4d8929 100644
--- a/src/opm/parser/eclipse/Deck/ImportContainer.cpp
+++ b/src/opm/parser/eclipse/Deck/ImportContainer.cpp
@@ -15,6 +15,10 @@
along with OPM. If not, see .
*/
+
+#include
+
+#include
#include
#include
@@ -22,7 +26,6 @@
#include
#include
#include
-#include
#include
namespace Opm {
@@ -48,8 +51,7 @@ ImportContainer::ImportContainer(const Parser& parser, const UnitSystem& unit_sy
if (parser_item.dataType() == type_tag::fdouble) {
if (data_type == EclIO::REAL) {
auto& float_data = ecl_file.get(kw_index);
- std::vector double_data;
- std::copy(float_data.begin(), float_data.end(), std::back_inserter(double_data));
+ std::vector double_data{ float_data.begin(), float_data.end() };
this->keywords.emplace_back(parser_kw, double_data, unit_system, unit_system);
} else if (data_type == EclIO::DOUB) {
auto& double_data = ecl_file.get(kw_index);