From 7e1e6207b1792adb7a26a2312d052e8efb093911 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Fri, 14 Jan 2022 23:12:12 +0100 Subject: Use std::ostream::write instead of operator<< in OstreamOutput --- include/cxxformat/ostream.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cxxformat/ostream.hpp b/include/cxxformat/ostream.hpp index 308b670..e132457 100644 --- a/include/cxxformat/ostream.hpp +++ b/include/cxxformat/ostream.hpp @@ -14,7 +14,7 @@ namespace format { void output(std::string_view what) const { - to << what; + to.write(what.data(), what.size()); } std::ostream& stream() const noexcept { return to; } -- cgit v1.2.3-54-g00ecf