From 36b9a29610c8c5a9eb01ffc7d4581f38fa498758 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2024 18:02:37 +0100 Subject: compat/debug: actually also expose &cin --- compat/debug.cpp | 1 + compat/debug.hpp | 1 + 2 files changed, 2 insertions(+) (limited to 'compat') 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(); -- cgit v1.2.3