diff options
Diffstat (limited to 'include/ocl/io/print.hpp')
| -rw-r--r-- | include/ocl/io/print.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ocl/io/print.hpp b/include/ocl/io/print.hpp index 5c8a17c..aab6925 100644 --- a/include/ocl/io/print.hpp +++ b/include/ocl/io/print.hpp @@ -48,8 +48,8 @@ namespace ocl::io inline void enable_stdio_sync(const bool& enable) noexcept { - console_io_out.sync_with_stdio(enable); - detail::is_stdio_sync = false; + detail::is_stdio_sync = enable; + console_io_out.sync_with_stdio(detail::is_stdio_sync); } inline const bool& is_stdio_sync() |
