summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Pronin <dannftk@yandex.ru>2020-02-10 22:07:50 +0300
committerHubert Figuière <hub@figuiere.net>2020-02-11 22:31:11 -0500
commit408c71e9ba15566081103e6fcf57044163350200 (patch)
tree7fd7999e353bfe35eb1d75fcf357b1b0a0562f55
parent1ee778f5961ad0b244fed19a52e4d74c0199c91a (diff)
Make P2SpannedClip_Order::operator() const to 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<const _Compare&, const _Key&, const _Key&>' See https://gitlab.freedesktop.org/libopenraw/exempi/merge_requests/2 Signed-off-by: Hubert Figuière <hub@figuiere.net>
-rw-r--r--XMPFiles/source/FormatSupport/P2_Support.hpp2
1 files changed, 1 insertions, 1 deletions
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();
}