Remove uintptr_fallback

This commit is contained in:
Victor Zverovich committed 2022-02-18 07:03:33 -08:00
1 parent 4ddab8901c
commit 47da218cc3
3 files changed
+40 -65

No files matched your search

+4 -2
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");
}