updated tabs to spaces
This commit is contained in:
parent
8b6f3d732c
commit
a3a49a48e6
@ -1633,19 +1633,19 @@ TEST(FormatTest, FormatMessageExample) {
|
|||||||
class test_class
|
class test_class
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::string format_message(int id, const char *format,const fmt::ArgList &args) const {
|
std::string format_message(int id, const char *format,const fmt::ArgList &args) const {
|
||||||
MemoryWriter w;
|
MemoryWriter w;
|
||||||
w.write("[{}] ", id);
|
w.write("[{}] ", id);
|
||||||
w.write(format, args);
|
w.write(format, args);
|
||||||
return w.str();
|
return w.str();
|
||||||
}
|
}
|
||||||
FMT_VARIADIC_CONST(std::string, format_message, int, const char *)
|
FMT_VARIADIC_CONST(std::string, format_message, int, const char *)
|
||||||
};
|
};
|
||||||
|
|
||||||
TEST(FormatTest, ConstFormatMessage) {
|
TEST(FormatTest, ConstFormatMessage) {
|
||||||
test_class c;
|
test_class c;
|
||||||
EXPECT_EQ("[42] something happened",
|
EXPECT_EQ("[42] something happened",
|
||||||
c.format_message(42, "{} happened", "something"));
|
c.format_message(42, "{} happened", "something"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FMT_USE_VARIADIC_TEMPLATES
|
#if FMT_USE_VARIADIC_TEMPLATES
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user