summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-03 18:02:37 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-04 06:58:15 +0100
commit36b9a29610c8c5a9eb01ffc7d4581f38fa498758 (patch)
treef4aa2f2923e82dfd240cdfbd978bc3726b64d72e /compat
parenta73f01a0cbedc578b169b4c74910dcde072d8451 (diff)
compat/debug: actually also expose &cin
Diffstat (limited to 'compat')
-rw-r--r--compat/debug.cpp1
-rw-r--r--compat/debug.hpp1
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();