🛠 Additional Iterator/Sentinel copy_str fix

This commit is contained in:
ThePhD 2023-12-15 00:49:02 -05:00
parent e5e1faefb8
commit 0cd77ef419
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA

View File

@ -1063,7 +1063,7 @@ namespace detail_exported {
#if FMT_USE_NONTYPE_TEMPLATE_ARGS
template <typename Char, size_t N> struct fixed_string {
constexpr fixed_string(const Char (&str)[N]) {
detail::copy_str<Char, const Char*, Char*>(static_cast<const Char*>(str),
detail::copy_str<Char, const Char*, const Char*, Char*>(static_cast<const Char*>(str),
str + N, data);
}
Char data[N] = {};