mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 23:21:45 +01:00
Add support for platforms without uintptr_t
This commit is contained in:
@@ -701,6 +701,13 @@ TEST(WriterTest, WriteWideString) {
|
||||
// std::declval<fmt::basic_writer<fmt::wbuffer>>().write("abc");
|
||||
}
|
||||
|
||||
TEST(WriterTest, WriteUIntPtr) {
|
||||
memory_buffer buf;
|
||||
fmt::writer writer(buf);
|
||||
writer.write_pointer(fmt::internal::bit_cast<fmt::internal::uintptr_t>(
|
||||
reinterpret_cast<void*>(0xface)), FMT_NULL);
|
||||
}
|
||||
|
||||
TEST(FormatToTest, FormatWithoutArgs) {
|
||||
std::string s;
|
||||
fmt::format_to(std::back_inserter(s), "test");
|
||||
|
||||
Reference in New Issue
Block a user