From 88375bf9c007582d607ca9e4da3fd079299cabfc Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 5 Jul 2025 21:41:35 -0400 Subject: [PATCH] fixed build for older gcc --- libi2pd_client/SAM.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 != "") {