From 3d6053e25c28c77fc2f3cb4f06fe648cbb8af049 Mon Sep 17 00:00:00 2001 From: Cristi Date: Thu, 7 Jan 2021 18:17:11 +0200 Subject: [PATCH] Ranges copy wchar_t --- include/fmt/ranges.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 0ebf9652..4c04f9ea 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -67,6 +67,12 @@ OutputIterator copy(char ch, OutputIterator out) { return out; } +template +OutputIterator copy(wchar_t ch, OutputIterator out) { + *out++ = ch; + return out; +} + /// Return true value if T has std::string interface, like std::string_view. template class is_like_std_string { template