diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-18 07:56:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-18 07:56:32 +0100 |
| commit | 4fd646501b75cb1d94a6e17d2387372d72ce797b (patch) | |
| tree | b9b6d442f8a92fea4c8943a1504dba105b133596 /dev/lib/io | |
| parent | d6d127aefb6819fa97ef11aef0998c03a3aad88e (diff) | |
| parent | 9eec329ebdf4cf079619edb58dbcd78ce42b8626 (diff) | |
Merge pull request #10 from amlel-el-mahrouss/develop
fix: IO and FIX modules.
Diffstat (limited to 'dev/lib/io')
| -rw-r--r-- | dev/lib/io/print.hpp | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/dev/lib/io/print.hpp b/dev/lib/io/print.hpp index 307c06f..466b698 100644 --- a/dev/lib/io/print.hpp +++ b/dev/lib/io/print.hpp @@ -13,13 +13,6 @@ namespace ocl::io { - template <typename T, typename... Args> - inline void print(T fmt, Args... other) noexcept - { - std::cout << fmt; - print(other...); - } - template <typename T> inline void print(T fmt) noexcept { @@ -28,14 +21,27 @@ namespace ocl::io inline void print() noexcept { - std::cout << std::endl; + } + + template <typename... Args> + inline void print(Args... fmt) noexcept + { + print(fmt...); + print(); + } + + template <typename T, typename... Args> + inline void print(T fmt, Args... other) noexcept + { + std::cout << fmt; + print(other...); } template <typename... T> inline void println(T... fmt) noexcept { print(fmt...); - print(); + print("\n"); } } // namespace ocl::io |
