From 34b01760832c62499d8ae8363885043c4f5c333c Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 19 Apr 2017 23:10:29 +0900 Subject: [PATCH] remove is_castable --- toml/toml.hpp | 28 ---------------------------- 1 file changed, 28 deletions(-) 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) // {