Changed clang formatting for templates

This commit is contained in:
gabime
2018-03-16 17:13:50 +02:00
parent f4ce52d206
commit 5afb5dc782
29 changed files with 291 additions and 288 deletions

View File

@@ -23,7 +23,7 @@
#include <unordered_map>
namespace spdlog { namespace details {
template <class Mutex> class registry_t
template<class Mutex> class registry_t
{
public:
registry_t<Mutex>(const registry_t<Mutex> &) = delete;
@@ -44,7 +44,7 @@ public:
return found == _loggers.end() ? nullptr : found->second;
}
template <class It> std::shared_ptr<logger> create(const std::string &logger_name, const It &sinks_begin, const It &sinks_end)
template<class It> std::shared_ptr<logger> create(const std::string &logger_name, const It &sinks_begin, const It &sinks_end)
{
std::lock_guard<Mutex> lock(_mutex);
throw_if_exists(logger_name);
@@ -69,7 +69,7 @@ public:
return new_logger;
}
template <class It>
template<class It>
std::shared_ptr<async_logger> create_async(const std::string &logger_name, size_t queue_size,
const async_overflow_policy overflow_policy, const std::function<void()> &worker_warmup_cb,
const std::chrono::milliseconds &flush_interval_ms, const std::function<void()> &worker_teardown_cb, const It &sinks_begin,