From 30f90b25fbde5319e992fcf9e9cb112b66c2f568 Mon Sep 17 00:00:00 2001 From: Denis Pronin Date: Mon, 10 Feb 2020 22:07:50 +0300 Subject: [PATCH] support gcc-9.2.0 with c++17 P2_Support.hpp: operator() of predicate 'P2SpannedClip_Order' is made to be 'const' fixed static_assert 'is_invocable_v' Signed-off-by: Denis Pronin --- XMPFiles/source/FormatSupport/P2_Support.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMPFiles/source/FormatSupport/P2_Support.hpp b/XMPFiles/source/FormatSupport/P2_Support.hpp index 8375d32..9a18884 100644 --- a/XMPFiles/source/FormatSupport/P2_Support.hpp +++ b/XMPFiles/source/FormatSupport/P2_Support.hpp @@ -79,7 +79,7 @@ private: }; // class P2_Clip struct P2SpannedClip_Order { - bool operator()( P2_Clip* lhs, P2_Clip* rhs) + bool operator()( P2_Clip* lhs, P2_Clip* rhs) const { return lhs->GetOffsetInShot() < rhs->GetOffsetInShot(); } -- GitLab