From b0db1009f59b830e46ff91d050bcfee5551a671f Mon Sep 17 00:00:00 2001 From: EZ4Stephen Date: Mon, 17 Nov 2025 09:42:24 +0400 Subject: [PATCH] Update abstract_ui.h Include #include to use memcmp --- libs/pbd/pbd/abstract_ui.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/pbd/pbd/abstract_ui.h b/libs/pbd/pbd/abstract_ui.h index ea715a8ec2..492f865453 100644 --- a/libs/pbd/pbd/abstract_ui.h +++ b/libs/pbd/pbd/abstract_ui.h @@ -23,6 +23,7 @@ #include #include #include +#include #include @@ -77,10 +78,7 @@ protected: { bool operator() (const pthread_t& a, const pthread_t& b) const noexcept { - if constexpr (std::is_class_v) //pthread_t is a struct for ptw32, so this filter works. - return a.p < b.p; - else - return a < b; + return std::memcmp(&a, &b, sizeof(pthread_t)) < 0; } }; typedef typename std::map::iterator RequestBufferMapIterator;