make operator<< overload constexpr

This commit is contained in:
Sergiu Deitsch 2024-01-11 10:22:20 +01:00
parent 2bd06dbe36
commit ee0ef8ca1c
No known key found for this signature in database

View File

@ -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