[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:
Nikita Shulga
2022-11-01 03:59:51 +00:00
committed by PyTorch MergeBot
parent 560786ac20
commit a6acbad5c3

View File

@ -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) {}