Skip to content

Build is broken with clang-19: implicit instantiation of undefined template 'std::char_traits<unsigned char>' #1982

@yurivict

Description

@yurivict
In file included from tools/ola_trigger/ola-trigger.cpp:29:
In file included from ./include/ola/DmxBuffer.h:30:
In file included from /usr/include/c++/v1/iostream:42:
In file included from /usr/include/c++/v1/ios:220:
In file included from /usr/include/c++/v1/__locale:24:
/usr/include/c++/v1/string:820:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
  820 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
      |                                          ^
./include/ola/rdm/RDMFrame.h:85:23: note: in instantiation of template class 'std::basic_string<unsigned char>' requested here
   85 |   ola::io::ByteString data;
      |                       ^
/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
   23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
      |                             ^
In file included from tools/ola_trigger/ola-trigger.cpp:29:
In file included from ./include/ola/DmxBuffer.h:30:
In file included from /usr/include/c++/v1/iostream:42:
In file included from /usr/include/c++/v1/ios:220:
In file included from /usr/include/c++/v1/__locale:24:
In file included from /usr/include/c++/v1/string:647:
/usr/include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
  300 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
      |                                          ^

log

clang-19
FreeBSD 14.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions