From 1b25f85a66d5e05ff0684c33c6d43c3909f10200 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Wed, 28 Jan 2015 14:19:47 +0100 Subject: [PATCH] Explicitly specify insertion to exported functions --- AST.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AST.cpp b/AST.cpp index 71bf7c4ab..a23846a05 100644 --- a/AST.cpp +++ b/AST.cpp @@ -83,7 +83,7 @@ map, FunctionDescription> ContractDefinition::getInterfaceFunctions map, FunctionDescription> exportedFunctions; for (auto const& it: exportedFunctionList) - exportedFunctions[std::get<0>(it)] = std::move(FunctionDescription(std::get<1>(it), std::get<2>(it))); + exportedFunctions.insert(make_pair(std::get<0>(it), FunctionDescription(std::get<1>(it), std::get<2>(it)))); solAssert(exportedFunctionList.size() == exportedFunctions.size(), "Hash collision at Function Definition Hash calculation");