diff options
author | John Hodge (bugs) <tpg@mutabah.net> | 2017-02-25 22:24:40 +0800 |
---|---|---|
committer | John Hodge (bugs) <tpg@mutabah.net> | 2017-02-25 22:24:40 +0800 |
commit | 03addc877bab648ccde022edec29f5b051ce7cb9 (patch) | |
tree | 51089cf2abbda1d48a7105da1cb18ec84f2f4590 /src/include/debug.hpp | |
parent | 12c012c69235fd90c855881f2c07c91dbb052635 (diff) | |
download | mrust-03addc877bab648ccde022edec29f5b051ce7cb9.tar.gz |
Add visual studio project files, little tweaks to codebase to allow compiling on visual studio (not complete)
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 |