diff --git a/include/toml11/result.hpp b/include/toml11/result.hpp index e847c4b9..f16959e3 100644 --- a/include/toml11/result.hpp +++ b/include/toml11/result.hpp @@ -32,7 +32,7 @@ struct bad_result_access final : public ::toml::exception template struct success { - static_assert( ! std::is_same::value, ""); + static_assert( ! std::is_void::value, ""); using value_type = T; @@ -66,7 +66,7 @@ struct success template struct success> { - static_assert( ! std::is_same::value, ""); + static_assert( ! std::is_void::value, ""); using value_type = T;