mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
Changed clang formatting for templates
This commit is contained in:
@@ -24,6 +24,12 @@ void err_handler_example();
|
||||
namespace spd = spdlog;
|
||||
int main(int, char *[])
|
||||
{
|
||||
fmt::MemoryWriter w;
|
||||
w.write("HELLO", 10);
|
||||
std::string s(w.data(), w.size());
|
||||
std::cout << s << std::endl;
|
||||
return 0;
|
||||
|
||||
try
|
||||
{
|
||||
// Console logger with color
|
||||
@@ -133,7 +139,7 @@ void android_example()
|
||||
struct my_type
|
||||
{
|
||||
int i;
|
||||
template <typename OStream> friend OStream &operator<<(OStream &os, const my_type &c)
|
||||
template<typename OStream> friend OStream &operator<<(OStream &os, const my_type &c)
|
||||
{
|
||||
return os << "[my_type i=" << c.i << "]";
|
||||
}
|
||||
|
Reference in New Issue
Block a user