Skip to content

Commit

Permalink
Add r-value overload to LogMessageVoidify to make clang-17 happy with…
Browse files Browse the repository at this point in the history
… c++20
  • Loading branch information
pateldeev committed Jan 10, 2024
1 parent 7e6fca9 commit fd86cf2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/glog/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd86cf2

Please sign in to comment.