diff --git a/opm/parser/eclipse/Parser/Parser.cpp b/opm/parser/eclipse/Parser/Parser.cpp index 81e0cf157..52065b4d6 100644 --- a/opm/parser/eclipse/Parser/Parser.cpp +++ b/opm/parser/eclipse/Parser/Parser.cpp @@ -76,8 +76,7 @@ namespace Opm { inputstream = inputStream; } - ParserState(const boost::filesystem::path &inputDataFile, DeckPtr deckToFill, const boost::filesystem::path &commonRootPath, std::map &pathMapRef) { - new (this) ParserState(inputDataFile, deckToFill, commonRootPath); + ParserState(const boost::filesystem::path &inputDataFile, DeckPtr deckToFill, const boost::filesystem::path &commonRootPath, std::map &pathMapRef):ParserState(inputDataFile, deckToFill, commonRootPath) { pathMap = pathMapRef; }