Remove uintptr_fallback

This commit is contained in:
Victor Zverovich
2022-02-18 07:03:33 -08:00
parent 4ddab8901c
commit 47da218cc3
3 changed files with 40 additions and 65 deletions

View File

@@ -340,11 +340,13 @@ TEST(format_impl_test, count_digits) {
test_count_digits<uint64_t>();
}
TEST(format_impl_test, write_fallback_uintptr) {
TEST(format_impl_test, write_uintptr_fallback) {
std::string s;
fmt::detail::write_ptr<char>(
std::back_inserter(s),
fmt::detail::uintptr_fallback(reinterpret_cast<void*>(0xface)), nullptr);
fmt::detail::to_uintptr<fmt::detail::uint128_fallback>(
reinterpret_cast<void*>(0xface)),
nullptr);
EXPECT_EQ(s, "0xface");
}