diff options
author | Gabi Melman <gmelman1@gmail.com> | 2019-05-19 17:57:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 17:57:18 +0300 |
commit | d21bcd2f876a0e310889e37551130c2b07a687fc (patch) | |
tree | 35d80f60d6403b3aa46f452f69831da7421f27af /example | |
parent | 84f25b9f18a00641e013753325e81e145ae1a964 (diff) |
Delete utils.h
Diffstat (limited to 'example')
-rw-r--r-- | example/utils.h | 34 |
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 |