diff --git a/call/rtp_transport_controller_send.cc b/call/rtp_transport_controller_send.cc index fd9597dfe9..64b18e5866 100644 --- a/call/rtp_transport_controller_send.cc +++ b/call/rtp_transport_controller_send.cc @@ -280,8 +280,11 @@ void RtpTransportControllerSend::OnNetworkRouteChanged( ApplyOrLiftRelayCap(IsRelayed(network_route)); // Check whether the network route has changed on each transport. - auto result = - network_routes_.insert(std::make_pair(transport_name, network_route)); + auto result = network_routes_.insert( + // Explicit conversion of transport_name to std::string here is necessary + // to support some platforms that cannot yet deal with implicit + // conversion in these types of situations. + std::make_pair(std::string(transport_name), network_route)); auto kv = result.first; bool inserted = result.second; if (inserted || !(kv->second == network_route)) {