mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
astyle
This commit is contained in:
parent
6d8efa8d7f
commit
5d23e88c16
@ -2647,15 +2647,15 @@ inline uint64_t make_type(const T &arg)
|
||||
}
|
||||
|
||||
template <unsigned N, bool/*IsPacked*/ = (N < ArgList::MAX_PACKED_ARGS)>
|
||||
struct ArgArray;
|
||||
struct ArgArray;
|
||||
|
||||
template <unsigned N>
|
||||
struct ArgArray<N, true/*IsPacked*/>
|
||||
{
|
||||
typedef Value Type[N > 0 ? N : 1];
|
||||
|
||||
template <typename Formatter, typename T>
|
||||
static Value make(const T &value)
|
||||
template <typename Formatter, typename T>
|
||||
static Value make(const T &value)
|
||||
{
|
||||
#ifdef __clang__
|
||||
Value result = MakeValue<Formatter>(value);
|
||||
@ -2667,7 +2667,7 @@ static Value make(const T &value)
|
||||
return MakeValue<Formatter>(value);
|
||||
#endif
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
template <unsigned N>
|
||||
struct ArgArray<N, false/*IsPacked*/>
|
||||
@ -4571,7 +4571,7 @@ struct UdlArg
|
||||
template <typename T>
|
||||
NamedArgWithType<Char, T> operator=(T &&value) const
|
||||
{
|
||||
return{ str, std::forward<T>(value) };
|
||||
return { str, std::forward<T>(value) };
|
||||
}
|
||||
};
|
||||
|
||||
@ -4593,12 +4593,12 @@ std::string message = "The answer is {}"_format(42);
|
||||
inline internal::UdlFormat<char>
|
||||
operator"" _format(const char *s, std::size_t)
|
||||
{
|
||||
return{ s };
|
||||
return { s };
|
||||
}
|
||||
inline internal::UdlFormat<wchar_t>
|
||||
operator"" _format(const wchar_t *s, std::size_t)
|
||||
{
|
||||
return{ s };
|
||||
return { s };
|
||||
}
|
||||
|
||||
/**
|
||||
@ -4614,12 +4614,12 @@ print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);
|
||||
inline internal::UdlArg<char>
|
||||
operator"" _a(const char *s, std::size_t)
|
||||
{
|
||||
return{ s };
|
||||
return { s };
|
||||
}
|
||||
inline internal::UdlArg<wchar_t>
|
||||
operator"" _a(const wchar_t *s, std::size_t)
|
||||
{
|
||||
return{ s };
|
||||
return { s };
|
||||
}
|
||||
|
||||
} // inline namespace literals
|
||||
|
Loading…
Reference in New Issue
Block a user