diff --git a/toml/toml.hpp b/toml/toml.hpp index a389e9b..decd8b6 100644 --- a/toml/toml.hpp +++ b/toml/toml.hpp @@ -216,33 +216,6 @@ struct storage : public storage_base }; } // detail -// `is_castable` is used for explicit cast of values. -// implicit conversion is achieved by the same manner as value::ctor. -// so it allows integer->bool conversion. -template -struct is_castable : std::false_type{}; -template -struct is_castable : std::integral_constant::value>{}; -template -struct is_castable : std::integral_constant::value>{}; -template -struct is_castable : std::integral_constant::value>{}; -template -struct is_castable : std::integral_constant::value>{}; -template -struct is_castable : std::integral_constant::value>{}; -template -struct is_castable : std::integral_constant::value || toml::detail::is_container::value>{}; -template -struct is_castable : std::integral_constant::value && toml::detail::is_key_convertible::value>{}; - /* -------------------------------------------------------------------------- */ template inline std::unique_ptr make_unique(Ts&& ... args) @@ -751,7 +724,6 @@ value::cast() /* -------------------------------------------------------------------------- */ - // template()> // inline toml::value to_toml(T&& x) // {