Make std::byte formattabe (#1981)
This commit is contained in:
@@ -1762,6 +1762,13 @@ TEST(FormatTest, JoinArg) {
|
||||
#endif
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
TEST(FormatTest, JoinBytes) {
|
||||
std::vector<std::byte> v = {std::byte(1), std::byte(2), std::byte(3)};
|
||||
EXPECT_EQ("1, 2, 3", fmt::format("{}", fmt::join(v, ", ")));
|
||||
}
|
||||
#endif
|
||||
|
||||
template <typename T> std::string str(const T& value) {
|
||||
return fmt::format("{}", value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user