diff --git a/libi2pd_client/SAM.cpp b/libi2pd_client/SAM.cpp index 90a1937f..fad7ea2d 100644 --- a/libi2pd_client/SAM.cpp +++ b/libi2pd_client/SAM.cpp @@ -1460,7 +1460,13 @@ namespace client std::shared_ptr SAMBridge::CreateSession (std::string_view id, SAMSessionType type, std::string_view destination, const std::map& params) { +#if __GNUC__ < 10 // TODO: remove when older versions discontinued + std::map p; + for (auto it: params) + p.emplace (std::string (it.first), std::string (it.second)); +#else std::map p(params.begin (), params.end ()); +#endif std::shared_ptr localDestination = nullptr; if (destination != "") {