diff --git a/toml/types.hpp b/toml/types.hpp index 315f0e5..fb16075 100644 --- a/toml/types.hpp +++ b/toml/types.hpp @@ -127,6 +127,29 @@ template<> struct toml_default_type {typedef table template<> struct toml_default_type {typedef void type;}; template<> struct toml_default_type {typedef void type;}; +template struct toml_value_t {static constexpr value_t value = value_t::Unknown ;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::Boolean ;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::Integer ;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::Float ;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::String ;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::OffsetDatetime;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::LocalDatetime ;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::LocalDate ;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::LocalTime ;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::Array ;}; +template<> struct toml_value_t{static constexpr value_t value = value_t::Table ;}; +template constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t::value; +constexpr value_t toml_value_t
::value; + template struct is_exact_toml_type : disjunction< std::is_same,