diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-14 23:12:12 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-14 23:12:12 +0100 |
| commit | 7e1e6207b1792adb7a26a2312d052e8efb093911 (patch) | |
| tree | 0174873f9161493cb5e8e78adc74cb74f55480ee | |
| parent | 7f733ce14fdd6c430f442e7ce5ba29880deb14ee (diff) | |
| download | cxxformat-7e1e6207b1792adb7a26a2312d052e8efb093911.tar.gz cxxformat-7e1e6207b1792adb7a26a2312d052e8efb093911.zip | |
Use std::ostream::write instead of operator<< in OstreamOutput
| -rw-r--r-- | include/cxxformat/ostream.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
