From e6d72c2b4efc6eeb23e5a5141b4ac465d8629b8e Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 25 Feb 2015 22:16:45 +0100 Subject: [PATCH] Removing emplace from python plugin. --- src/compiler/python_generator.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/python_generator.cc b/src/compiler/python_generator.cc index 34d5332d03f..a93b08c5ceb 100644 --- a/src/compiler/python_generator.cc +++ b/src/compiler/python_generator.cc @@ -245,8 +245,8 @@ bool PrintServerFactory(const ServiceDescriptor* service, Printer* out) { if (!GetModuleAndMessagePath(input_type, &module_and_message)) { return false; } - method_to_module_and_message.emplace( - meth->name(), module_and_message); + method_to_module_and_message.insert( + make_pair(meth->name(), module_and_message)); } out->Print("}\n"); // Ensure that we've imported all of the relevant messages. @@ -306,8 +306,8 @@ bool PrintStubFactory(const ServiceDescriptor* service, Printer* out) { if (!GetModuleAndMessagePath(output_type, &module_and_message)) { return false; } - method_to_module_and_message.emplace( - meth->name(), module_and_message); + method_to_module_and_message.insert( + make_pair(meth->name(), module_and_message)); } out->Print("}\n"); // Ensure that we've imported all of the relevant messages.