Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 917010 Details for
Bug 941775
dev-libs/libfilezilla-0.48.1 - fails to build with clang-19: .../include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
fix.patch (text/plain), 1.50 KB, created by
Davide Palma
on 2025-01-18 17:49:05 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Davide Palma
Created:
2025-01-18 17:49:05 UTC
Size:
1.50 KB
patch
obsolete
>diff --git a/lib/libfilezilla/string.hpp b/lib/libfilezilla/string.hpp >index 5a44ed1..b85d920 100644 >--- a/lib/libfilezilla/string.hpp >+++ b/lib/libfilezilla/string.hpp >@@ -9,6 +9,37 @@ > #include <string_view> > #include <vector> > >+template<class CharT, class BaseT> >+class traits_cloner >+{ >+public: >+ using char_type = CharT; >+ >+ using base_type = BaseT; >+ using base_traits = std::char_traits<base_type>; >+ >+ static std::size_t length(char_type const* s) { >+ return base_traits::length(reinterpret_cast<base_type const*>(s)); >+ } >+ static int compare(char_type const* s1, char_type const* s2, std::size_t count) { >+ return base_traits::compare(reinterpret_cast<base_type const*>(s1), reinterpret_cast<base_type const*>(s2), count); >+ } >+ static char_type* copy(char_type* dest, char_type const* src, std::size_t count) { >+ return reinterpret_cast<char_type*>(base_traits::copy(reinterpret_cast<base_type*>(dest), reinterpret_cast<base_type const*>(src), count)); >+ } >+ static void assign(char_type& c1, char_type const& c2) noexcept { >+ c1 = c2; >+ } >+ static char_type const* find(char_type const* ptr, std::size_t count, char_type const& ch) { >+ return reinterpret_cast<char_type const*>(base_traits::find(reinterpret_cast<base_type const*>(ptr), count, reinterpret_cast<base_type const&>(ch))); >+ } >+}; >+ >+template<> >+class std::char_traits<uint8_t> : public traits_cloner<uint8_t, char> >+{}; >+ >+ > /** \file > * \brief String types and assorted functions. > * >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 941775
:
906292
|
906293
| 917010