From fd86cf287b12983c5df21bf3e9de838e2f57cbe4 Mon Sep 17 00:00:00 2001 From: pateldeev Date: Wed, 10 Jan 2024 14:41:20 -0800 Subject: [PATCH] Add r-value overload to LogMessageVoidify to make clang-17 happy with c++20 --- src/glog/logging.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glog/logging.h b/src/glog/logging.h index 6e3ea2615..3f3e763d1 100644 --- a/src/glog/logging.h +++ b/src/glog/logging.h @@ -1471,6 +1471,7 @@ struct LogMessageVoidify { // This has to be an operator with a precedence lower than << but // higher than ?: void operator&(std::ostream&) noexcept {} + void operator&(std::ostream&&) noexcept {} }; } // namespace internal