From d9bcecb6341729f939e18756b10e28328bdaedab Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Wed, 3 Sep 2025 20:55:26 -0600 Subject: [PATCH] Specify temporary lvalue in option match Fixes building on Windows --- cpp/include/idevice++/option.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/include/idevice++/option.hpp b/cpp/include/idevice++/option.hpp index be25570..ccc9f09 100644 --- a/cpp/include/idevice++/option.hpp +++ b/cpp/include/idevice++/option.hpp @@ -117,7 +117,7 @@ template class Option { // map template - auto map(F&& f) const -> Option::type> { + auto map(F&& f) const& -> Option::type> { using U = typename std::decay::type; if (has_) { return Option(f(*ptr()));