Make IStream::stream non-const

This way it makes much more sense from logically-const point
of view, and also means that concrete implementations don't
have to always have a `mutable` keyword on the stream member.
This commit is contained in:
Martin Hořeňovský committed 2022-04-13 14:59:39 +02:00
1 parent 9934b7de13
commit 4f09f1120b
11 files changed
+32 -32

No files matched your search

@@ -21,9 +21,9 @@ namespace {
};
class TestStringStream : public Catch::IStream {
mutable std::stringstream m_stream;
std::stringstream m_stream;
public:
std::ostream& stream() const override {
std::ostream& stream() override {
return m_stream;
}