Skip to content

Commit 45f99f5

Browse files
authored
make operator<< overload constexpr (#1106)
1 parent 2bd06db commit 45f99f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/glog/logging.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ T CheckNotNull(const char* file, int line, const char* names, T&& t) {
14191419
struct LogMessageVoidify {
14201420
// This has to be an operator with a precedence lower than << but
14211421
// higher than ?:
1422-
void operator&(std::ostream&) noexcept {}
1422+
constexpr void operator&(std::ostream&) const noexcept {}
14231423
};
14241424

14251425
} // namespace internal

0 commit comments

Comments
 (0)