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:
parent
5dd7989c6b
commit
c30597bbca
@ -245,7 +245,7 @@ FMT_FUNC void system_error::init(int err_code, string_view format_str,
|
|||||||
|
|
||||||
namespace internal {
|
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.
|
// Assume little endian; pointer formatting is implementation-defined anyway.
|
||||||
int i = static_cast<int>(sizeof(void*)) - 1;
|
int i = static_cast<int>(sizeof(void*)) - 1;
|
||||||
while (i > 0 && n.value[i] == 0) --i;
|
while (i > 0 && n.value[i] == 0) --i;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user