mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 18:57:34 +02:00
Fix a clang warning about an undefined template (#318)
(cherry picked from commit 744c2824c5
)
This commit is contained in:
committed by
Jonathan Müller
parent
e5e4fb370c
commit
3f1cd52adc
@ -98,6 +98,7 @@ typedef __int64 intmax_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__clang__) && !defined(FMT_ICC_VERSION)
|
#if defined(__clang__) && !defined(FMT_ICC_VERSION)
|
||||||
|
# define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
|
||||||
# pragma clang diagnostic push
|
# pragma clang diagnostic push
|
||||||
# pragma clang diagnostic ignored "-Wdocumentation"
|
# pragma clang diagnostic ignored "-Wdocumentation"
|
||||||
#endif
|
#endif
|
||||||
@ -830,6 +831,14 @@ struct FMT_API BasicData {
|
|||||||
static const char DIGITS[];
|
static const char DIGITS[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef FMT_USE_EXTERN_TEMPLATES
|
||||||
|
# define FMT_USE_EXTERN_TEMPLATES (FMT_CLANG_VERSION >= 209)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if FMT_USE_EXTERN_TEMPLATES
|
||||||
|
extern template struct BasicData<void>;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef BasicData<> Data;
|
typedef BasicData<> Data;
|
||||||
|
|
||||||
#ifdef FMT_BUILTIN_CLZLL
|
#ifdef FMT_BUILTIN_CLZLL
|
||||||
|
Reference in New Issue
Block a user