mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-09 05:44:34 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user