From 45f99f5e1a03cc4d3d845a3bd31dcad5b3619ed0 Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Thu, 13 Jun 2024 23:01:34 +0200 Subject: [PATCH] make operator<< overload constexpr (#1106) --- src/glog/logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glog/logging.h b/src/glog/logging.h index 6e36eaadf..47439667c 100644 --- a/src/glog/logging.h +++ b/src/glog/logging.h @@ -1419,7 +1419,7 @@ T CheckNotNull(const char* file, int line, const char* names, T&& t) { struct LogMessageVoidify { // This has to be an operator with a precedence lower than << but // higher than ?: - void operator&(std::ostream&) noexcept {} + constexpr void operator&(std::ostream&) const noexcept {} }; } // namespace internal