From 56e6396bc9d6fe559ba4b7424b3dd48c5bb0c8b6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 23 Jul 2024 13:37:20 +0200 Subject: [PATCH] event/TimerList: use FineTimerEvent::GetDue() Avoid accessing the private field from an inner class of the friend class, because some compilers apparently don't like it (Apple clang). --- src/event/TimerList.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event/TimerList.cxx b/src/event/TimerList.cxx index e02df0371..355f11fc1 100644 --- a/src/event/TimerList.cxx +++ b/src/event/TimerList.cxx @@ -8,7 +8,7 @@ constexpr Event::TimePoint TimerList::GetDue::operator()(const FineTimerEvent &timer) const noexcept { - return timer.due; + return timer.GetDue(); } TimerList::TimerList() = default;