mirror of
https://github.com/fmtlib/fmt.git
synced 2026-08-03 20:14:20 +02:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user