Changed to use C++11 syntax for constructor

This commit is contained in:
Fredrik Gundersen
2015-04-01 08:49:36 +02:00
parent a64c3a62bf
commit 5401b828ba

View File

@@ -76,8 +76,7 @@ namespace Opm {
inputstream = inputStream;
}
ParserState(const boost::filesystem::path &inputDataFile, DeckPtr deckToFill, const boost::filesystem::path &commonRootPath, std::map<std::string, std::string> &pathMapRef) {
new (this) ParserState(inputDataFile, deckToFill, commonRootPath);
ParserState(const boost::filesystem::path &inputDataFile, DeckPtr deckToFill, const boost::filesystem::path &commonRootPath, std::map<std::string, std::string> &pathMapRef):ParserState(inputDataFile, deckToFill, commonRootPath) {
pathMap = pathMapRef;
}