Moving test_count_digits to test-impl-test.cc then count_digits<4>(internal::uintptr_t) shall not be exported

This commit is contained in:
denchat 2019-05-07 22:19:29 +07:00 committed by GitHub
parent 5dd7989c6b
commit c30597bbca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ FMT_FUNC void system_error::init(int err_code, string_view format_str,
namespace internal {
template <> FMT_FUNC FMT_API int count_digits<4>(internal::uintptr_t n) {
template <> FMT_FUNC int count_digits<4>(internal::uintptr_t n) {
// Assume little endian; pointer formatting is implementation-defined anyway.
int i = static_cast<int>(sizeof(void*)) - 1;
while (i > 0 && n.value[i] == 0) --i;