fix build on GCC 8.0.1

https://bugzilla.redhat.com/show_bug.cgi?id=1541688
This commit is contained in:
R4SAS 2018-02-05 05:07:26 +03:00
parent 0728991821
commit 4af0caa506

View File

@ -59,7 +59,8 @@ namespace tunnel
struct TunnelCreationTimeCmp
{
bool operator() (const std::shared_ptr<const TunnelBase> & t1, const std::shared_ptr<const TunnelBase> & t2) const
template<typename T>
bool operator() (const std::shared_ptr<T> & t1, const std::shared_ptr<T> & t2) const
{
if (t1->GetCreationTime () != t2->GetCreationTime ())
return t1->GetCreationTime () > t2->GetCreationTime ();