From d21bcd2f876a0e310889e37551130c2b07a687fc Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 19 May 2019 17:57:18 +0300 Subject: Delete utils.h --- example/utils.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 example/utils.h (limited to 'example') 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 -#include -#include - -namespace utils { - -template -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 -- cgit v1.2.3