Format null std::exception_ptr as "none"

Change the null exception_ptr representation from "nullptr" to "none" to
convey the "no exception" state more clearly, and update the test.
This commit is contained in:
Victor Zverovich
2026-07-11 08:21:01 -07:00
parent 6dac6cad05
commit 9d13c41ce6
2 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ TEST(std_test, exception_ptr) {
p2 = std::current_exception();
}
EXPECT_EQ(fmt::format("{}", p1), "nullptr");
EXPECT_EQ(fmt::format("{}", p1), "none");
EXPECT_EQ(fmt::format("{}", p2), "My Exception");
#if FMT_USE_RTTI