mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
The base template for std::char_traits<> has been removed in LLVM 19; specializations are only provided for char, wchar_t, char8_t, char16_t, and char32_t. This had severely impacted GNU APL which derived its UTF8 and UCS string classes from std::basic_string<>. The author had made several attempts to convert these classes to use std::vector<> instead. Carefully cherry-pick required changes so these fixes could be applied on top of version 1.8 as trunk had diverged significantly. Obtained from: upstream (SVN revisions 1823, 1831, and 1837) Reported by: pkg-fallout
21 lines
575 B
C++
21 lines
575 B
C++
--- src/Nabla.cc.orig 2019-06-23 12:39:20 UTC
|
|
+++ src/Nabla.cc
|
|
@@ -219,7 +219,7 @@ Nabla::start()
|
|
// ∇FUN[⎕]∇
|
|
// etc.
|
|
//
|
|
-UCS_string::iterator c(first_command.begin());
|
|
+UCS_string::iterator c(first_command);
|
|
|
|
// skip leading spaces
|
|
//
|
|
@@ -375,7 +375,7 @@ Nabla::parse_oper(UCS_string & oper, bool initial)
|
|
|
|
if (oper.size() == 0 && do_close) return 0;
|
|
|
|
-UCS_string::iterator c(oper.begin());
|
|
+UCS_string::iterator c(oper);
|
|
Unicode cc = c.next();
|
|
UCS_string text = oper;
|
|
while (cc == ' ') cc = c.next(); // skip leading whitespace
|