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)