From 5401b828ba01db75c089311ba466f7f7655aed83 Mon Sep 17 00:00:00 2001 From: Fredrik Gundersen Date: Wed, 1 Apr 2015 08:49:36 +0200 Subject: [PATCH] Changed to use C++11 syntax for constructor --- opm/parser/eclipse/Parser/Parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }