Fix DLL visibility of count_digits<4>(internal::uintptr_t) definition in format-inl.h

In FMT_SHARED mode, format-test.exe wants to DLL import `count_digits<4>(internal::uintptr_t)` explicit full specialization definition in format-inl.h
This commit is contained in:
denchat 2019-05-07 20:07:50 +07:00 committed by GitHub
parent ca7c1f89dc
commit 4bf134428d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -749,7 +749,7 @@ inline int count_digits(uint64_t n) {
#endif
// Counts the number of digits in n. BITS = log2(radix).
template <unsigned BITS, typename UInt> inline int count_digits(UInt n) {
template <unsigned BITS, typename UInt> inline FMT_EXTERN_TEMPLATE_API int count_digits(UInt n) {
int num_digits = 0;
do {
++num_digits;