Skip to content

Commit 3083441

Browse files
committed
Fixing missing std::char_traits<const char> on newer compilers
1 parent 031e770 commit 3083441

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/inc/sys_string/utf_view.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ namespace sysstr
316316
template<class Char, size_t N>
317317
struct utf_access_traits<Char [N]>
318318
{
319-
using char_access = std::basic_string_view<const Char>;
319+
using char_access = std::basic_string_view<std::remove_const_t<Char>>;
320320

321-
static constexpr std::basic_string_view<const Char> adapt(Char (& src) [N]) noexcept
321+
static constexpr std::basic_string_view<std::remove_const_t<Char>> adapt(Char (& src) [N]) noexcept
322322
{ return src; }
323323
};
324324

0 commit comments

Comments
 (0)