Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabi Melman <gmelman1@gmail.com>2019-05-19 17:57:18 +0300
committerGitHub <noreply@github.com>2019-05-19 17:57:18 +0300
commitd21bcd2f876a0e310889e37551130c2b07a687fc (patch)
tree35d80f60d6403b3aa46f452f69831da7421f27af /example
parent84f25b9f18a00641e013753325e81e145ae1a964 (diff)
Delete utils.h
Diffstat (limited to 'example')
-rw-r--r--example/utils.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/example/utils.h b/example/utils.h
deleted file mode 100644
index 91610128..00000000
--- a/example/utils.h
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-// Copyright(c) 2015 Gabi Melman.
-// Distributed under the MIT License (http://opensource.org/licenses/MIT)
-//
-
-#pragma once
-
-#include <iomanip>
-#include <locale>
-#include <sstream>
-
-namespace utils {
-
-template<typename T>
-inline std::string format(const T &value)
-{
- static std::locale loc("");
- std::stringstream ss;
- ss.imbue(loc);
- ss << value;
- return ss.str();
-}
-
-template<>
-inline std::string format(const double &value)
-{
- static std::locale loc("");
- std::stringstream ss;
- ss.imbue(loc);
- ss << std::fixed << std::setprecision(1) << value;
- return ss.str();
-}
-
-} // namespace utils