mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE] Use default constructor in LoggerVoidify
(#88054)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/88054 Approved by: https://github.com/kit1980
This commit is contained in:
committed by
PyTorch MergeBot
parent
560786ac20
commit
a6acbad5c3
@ -49,7 +49,7 @@ class C10_API MessageLogger {
|
||||
// is not used" and "statement has no effect".
|
||||
class C10_API LoggerVoidify {
|
||||
public:
|
||||
LoggerVoidify() {}
|
||||
LoggerVoidify() = default;
|
||||
// This has to be an operator with a precedence lower than << but
|
||||
// higher than ?:
|
||||
void operator&(const std::ostream& s) {}
|
||||
|
Reference in New Issue
Block a user