mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 18:57:34 +02:00
format std::reference_wrapper
This commit is contained in:
committed by
Victor Zverovich
parent
4197727712
commit
07e70151d5
@ -395,3 +395,8 @@ TEST(std_test, format_shared_ptr) {
|
||||
EXPECT_EQ(fmt::format("{}", fmt::ptr(sp.get())),
|
||||
fmt::format("{}", fmt::ptr(sp)));
|
||||
}
|
||||
|
||||
TEST(std_test, format_reference_wrapper) {
|
||||
int num = 35;
|
||||
EXPECT_EQ("35", fmt::to_string(std::cref(num)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user