fix module-compilation error when defined FMT_IMPORT_STD

This commit is contained in:
AnonymousPC 2025-07-06 01:38:11 +08:00
parent 513f978241
commit cd8a9d99df
2 changed files with 3 additions and 1 deletions

View File

@ -225,7 +225,7 @@ template <typename T> struct is_bit_reference_like {
// Workaround for libc++ incompatibility with C++ standard.
// According to the Standard, `bitset::operator[] const` returns bool.
#ifdef _LIBCPP_VERSION
#if defined(_LIBCPP_VERSION) && !defined(FMT_IMPORT_STD)
template <typename C>
struct is_bit_reference_like<std::__bit_const_reference<C>> {
static constexpr bool value = true;

View File

@ -51,6 +51,8 @@ module;
# include <stdint.h>
# include <stdio.h>
# include <time.h>
# include <string.h>
# include <stdlib.h>
#endif
#include <cerrno>
#include <climits>