Fix Werrors with GCC-14.1.0
[platform/upstream/libzypp.git] / zypp / base / LogTools.h
index fcbaf80..09850a9 100644 (file)
 #include <set>
 #include <map>
 
-#include "zypp/base/Hash.h"
-#include "zypp/base/Logger.h"
-#include "zypp/base/Iterator.h"
-#include "zypp/APIConfig.h"
+#include <zypp/base/Hash.h>
+#include <zypp/base/Logger.h>
+#include <zypp/base/Iterator.h>
+#include <zypp/APIConfig.h>
 
 ///////////////////////////////////////////////////////////////////
 namespace zypp
@@ -181,6 +181,10 @@ namespace zypp
     std::ostream & operator<<( std::ostream & str, const std::list<Tp> & obj )
     { return dumpRange( str, obj.begin(), obj.end() ); }
 
+  template<class Tp>
+    std::ostream & operator<<( std::ostream & str, const Iterable<Tp> & obj )
+    { return dumpRange( str, obj.begin(), obj.end() ); }
+
   ///////////////////////////////////////////////////////////////////
   namespace _logtoolsdetail
   { /////////////////////////////////////////////////////////////////