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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user