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:
Diffstat (limited to 'example/utils.h')
-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