From 4af0caa50639c9c080034b2ea8239eb7e06f0ba3 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Mon, 5 Feb 2018 05:07:26 +0300 Subject: [PATCH] fix build on GCC 8.0.1 https://bugzilla.redhat.com/show_bug.cgi?id=1541688 --- libi2pd/TunnelBase.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd/TunnelBase.h b/libi2pd/TunnelBase.h index 97fb2b51..dce3debe 100644 --- a/libi2pd/TunnelBase.h +++ b/libi2pd/TunnelBase.h @@ -59,7 +59,8 @@ namespace tunnel struct TunnelCreationTimeCmp { - bool operator() (const std::shared_ptr & t1, const std::shared_ptr & t2) const + template + bool operator() (const std::shared_ptr & t1, const std::shared_ptr & t2) const { if (t1->GetCreationTime () != t2->GetCreationTime ()) return t1->GetCreationTime () > t2->GetCreationTime ();