diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-03 18:02:37 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-04 06:58:15 +0100 |
commit | 36b9a29610c8c5a9eb01ffc7d4581f38fa498758 (patch) | |
tree | f4aa2f2923e82dfd240cdfbd978bc3726b64d72e | |
parent | a73f01a0cbedc578b169b4c74910dcde072d8451 (diff) |
compat/debug: actually also expose &cin
-rw-r--r-- | compat/debug.cpp | 1 | ||||
-rw-r--r-- | compat/debug.hpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compat/debug.cpp b/compat/debug.cpp index d7a28289..5cbb3af5 100644 --- a/compat/debug.cpp +++ b/compat/debug.cpp @@ -66,6 +66,7 @@ Debug& operator<<(Debug& dbg, Fraction f) namespace floormat { +std::istream* standard_input() { return &std::cin; } std::ostream* standard_output() { return &std::cout; } std::ostream* standard_error() { return &std::cerr; } diff --git a/compat/debug.hpp b/compat/debug.hpp index 7d1c6718..1e3ebcda 100644 --- a/compat/debug.hpp +++ b/compat/debug.hpp @@ -57,6 +57,7 @@ Debug& operator<<(Debug& dbg, Fraction frac); namespace floormat { +std::istream* standard_input(); std::ostream* standard_output(); std::ostream* standard_error(); |