From c27f9a691992eef9f65a3270ce4117b9dff3962a Mon Sep 17 00:00:00 2001 From: Marcos Bento Date: Thu, 25 Apr 2024 10:53:32 +0100 Subject: [PATCH] Instantiate revision value n.b. This is needed to avoid an AppleClang 14 compilation errors, which doesn't allow to bind with reference to 'value' --- libs/aviso/src/aviso/ListenService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/aviso/src/aviso/ListenService.cpp b/libs/aviso/src/aviso/ListenService.cpp index 0dd29ea7a..22a2ac766 100644 --- a/libs/aviso/src/aviso/ListenService.cpp +++ b/libs/aviso/src/aviso/ListenService.cpp @@ -82,7 +82,8 @@ void ListenService::operator()(const std::chrono::system_clock::time_point& now) // Pass updated keys to the listener for (auto&& [key, value] : updated_keys) { if (key == "latest_revision") { - ALOG(D, "Updating revision for " << entry.path() << " to " << value); + auto revision = value; + ALOG(D, "Updating revision for " << entry.path() << " to " << revision); entry.listener().update_revision(std::stoll(value)); ALOG(D, "Revision for " << entry.path() << " is now " << entry.listener().revision()); continue;