ChargeSocketsHelper: implement a Diff method between old and new OSM keys

Signed-off-by: Séverin Lemaignan <severin@guakamole.org>
This commit is contained in:
Séverin Lemaignan
2025-10-02 00:19:20 +02:00
committed by x7z4w
parent 340b5ae3f9
commit 509ff4de72
4 changed files with 104 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ std::string DebugPrint(char32_t * t) = delete;
template <typename U, typename V>
inline std::string DebugPrint(std::pair<U, V> const & p);
template <typename U, typename V, typename W>
inline std::string DebugPrint(std::tuple<U, V, W> const & p);
template <typename T>
inline std::string DebugPrint(std::list<T> const & v);
template <typename T>
@@ -136,6 +138,14 @@ std::string DebugPrint(std::pair<U, V> const & p)
return out.str();
}
template <typename U, typename V, typename W>
std::string DebugPrint(std::tuple<U, V, W> const & p)
{
std::ostringstream out;
out << "(" << DebugPrint(get<0>(p)) << ", " << DebugPrint(get<1>(p)) << ", " << DebugPrint(get<2>(p)) << ")";
return out.str();
}
template <typename IterT>
std::string DebugPrintSequence(IterT beg, IterT end)
{