Several compilation errors occur when using Big5 and GB18030 encodings on macOS with Apple Clang 17. The issues are:
big5_hkscs.hpp: Misplaced parenthesis in std::addressof call and invalid constexpr lambda
gbk_or_gb18030.hpp: Type mismatch in replacement_code_points() function
Minimal reproduction code:
#include <string>
#include <span>
#include <ztd/text.hpp>
int main() {
std::string big5_input = "\xa4\xa4"; // Chinese character for "middle"
std::span<const char> input(big5_input.data(), big5_input.size());
// This fails to compile
auto result = ztd::text::transcode(input, ztd::text::big5_hkscs, ztd::text::compat_utf8,
ztd::text::replacement_handler);
return 0;
}
My fix here: 23459c9