diff --git a/toml/traits.hpp b/toml/traits.hpp index 98f524b..a565d86 100644 --- a/toml/traits.hpp +++ b/toml/traits.hpp @@ -13,10 +13,14 @@ #endif // has_include() #endif // cplusplus >= C++17 +#include "comments.hpp" +#include +#include + namespace toml { - -class value; // forward decl +template class T, template class A> +class basic_value; namespace detail { @@ -58,7 +62,10 @@ struct has_from_toml_method_impl { template static std::true_type check( - decltype(std::declval().from_toml(std::declval<::toml::value>()))*); + decltype(std::declval().from_toml(std::declval<::toml::basic_value< + ::toml::discard_comments, std::unordered_map, std::vector>>() + ) + )*); template static std::false_type check(...); };