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

@@ -13,7 +13,7 @@
#include "g2logworker.h"
using namespace std;
template <typename T> std::string format(const T &value);
template<typename T> std::string format(const T &value);
int main(int argc, char *argv[])
{

View File

@@ -11,7 +11,7 @@
namespace utils {
template <typename T> inline std::string format(const T &value)
template<typename T> inline std::string format(const T &value)
{
static std::locale loc("");
std::stringstream ss;
@@ -20,7 +20,7 @@ template <typename T> inline std::string format(const T &value)
return ss.str();
}
template <> inline std::string format(const double &value)
template<> inline std::string format(const double &value)
{
static std::locale loc("");
std::stringstream ss;

View File

@@ -11,7 +11,7 @@
namespace utils {
template <typename T> inline std::string format(const T &value)
template<typename T> inline std::string format(const T &value)
{
static std::locale loc("");
std::stringstream ss;
@@ -20,7 +20,7 @@ template <typename T> inline std::string format(const T &value)
return ss.str();
}
template <> inline std::string format(const double &value)
template<> inline std::string format(const double &value)
{
static std::locale loc("");
std::stringstream ss;