mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-05 13:36:32 -04:00
Fix import std
in clang++ (#4488)
fix module-compilation error when defined `FMT_IMPORT_STD`
This commit is contained in:
parent
300ce75ca6
commit
20c8fdad06
@ -225,7 +225,7 @@ template <typename T> struct is_bit_reference_like {
|
|||||||
|
|
||||||
// Workaround for libc++ incompatibility with C++ standard.
|
// Workaround for libc++ incompatibility with C++ standard.
|
||||||
// According to the Standard, `bitset::operator[] const` returns bool.
|
// According to the Standard, `bitset::operator[] const` returns bool.
|
||||||
#ifdef _LIBCPP_VERSION
|
#if defined(_LIBCPP_VERSION) && !defined(FMT_IMPORT_STD)
|
||||||
template <typename C>
|
template <typename C>
|
||||||
struct is_bit_reference_like<std::__bit_const_reference<C>> {
|
struct is_bit_reference_like<std::__bit_const_reference<C>> {
|
||||||
static constexpr bool value = true;
|
static constexpr bool value = true;
|
||||||
|
@ -50,6 +50,8 @@ module;
|
|||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
|
# include <stdlib.h>
|
||||||
|
# include <string.h>
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
#endif
|
#endif
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user