1
0

fix: try fix clang libcxx charconv issue.

- add compile checker in cmake to detect charconv support status.
- and expose macro for yycc to enable different part of charconv repectively to prevent duplicated defines.
This commit is contained in:
2026-01-23 14:37:21 +08:00
parent 09fea7e0a3
commit 76d01a3cad
13 changed files with 229 additions and 25 deletions

View File

@@ -5,11 +5,10 @@
#include <type_traits>
#include <stdexcept>
#include <expected>
#include <charconv>
#if defined(YYCC_STL_CLANGSTL)
#include "patch/libcxx/charconv.hpp"
#else
#include <charconv>
#endif
#define NS_YYCC_STRING_REINTERPRET ::yycc::string::reinterpret