diff options
Diffstat (limited to 'src/include/debug.hpp')
-rw-r--r-- | src/include/debug.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/debug.hpp b/src/include/debug.hpp index ce2f89da..756d6ef2 100644 --- a/src/include/debug.hpp +++ b/src/include/debug.hpp @@ -38,11 +38,14 @@ struct RepeatLitStr } }; -class NullSink: - public ::std::ostream +class NullSink { public: - NullSink() {} + NullSink() + {} + + template<typename T> + const NullSink& operator<<(const T&) const { return *this; } }; class TraceLog |