From 6878abdca143117bd72d828411ffa8b832a6b40d Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Mon, 8 May 2017 19:17:14 +0900 Subject: [PATCH] define charactor type --- toml/value.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/toml/value.hpp b/toml/value.hpp index 8b631eb..ac534a8 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -13,13 +13,15 @@ namespace toml { +using charactor = char; + class value; -using key = std::string; +using key = std::basic_string; using Boolean = bool; using Integer = std::int64_t; using Float = double; -using String = std::string; +using String = std::basic_string; using Datetime = basic_datetime; using Array = std::vector; using Table = std::unordered_map; @@ -37,7 +39,7 @@ enum class value_t : std::uint8_t Unknown = 255, }; -template +template> inline std::basic_ostream& operator<<(std::basic_ostream& os, value_t t) { @@ -56,7 +58,7 @@ operator<<(std::basic_ostream& os, value_t t) } } -template, +template, typename alloc = std::allocator> inline std::basic_string stringize(value_t t)