Skip to content

Commit 378613e

Browse files
committed
Made the mOStream pointer a constant-pointer-to-ostream so it can't be changed in flight.
1 parent f245c36 commit 378613e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/conditional_ostream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99

1010
struct ConditionalOStream {
11-
std::ostream *mOStream { nullptr };
11+
std::ostream *const mOStream { nullptr };
1212

1313
// Explicit constructors so that implicit
1414
// conversion from `std::ostream &`s can't

0 commit comments

Comments
 (0)