Skip to content

Commit

Permalink
make operator<< overload constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Jun 13, 2024
1 parent 2bd06db commit ee0ef8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glog/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee0ef8c

Please sign in to comment.