Skip to content

Commit

Permalink
make operator<< overload constexpr (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud authored Jun 13, 2024
1 parent 2bd06db commit 45f99f5
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 45f99f5

Please sign in to comment.