From 5e052237ba6e5bedd15e4c97948bea92906ec9a7 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Thu, 6 Dec 2018 01:20:11 +0900 Subject: [PATCH] add alias for snake_case types --- toml/types.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/toml/types.hpp b/toml/types.hpp index d822823..78fb149 100644 --- a/toml/types.hpp +++ b/toml/types.hpp @@ -22,6 +22,15 @@ using Datetime = basic_datetime; using Array = std::vector; using Table = std::unordered_map; +// alias for snake_case, consistency with STL/Boost, toml::key, toml::value +using boolean = Boolean; +using integer = Integer; +using floating = Float; // XXX float is keyword +using string = String; +using datetime = Datetime; +using array = Array; +using table = Table; + enum class value_t : std::uint8_t { Boolean = 1,