diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index 12e9b07..9c71697 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -362,7 +362,7 @@ struct can_invoke_to_string { }; template -struct is_choice_type_supported { +struct IsChoiceTypeSupported { using CleanType = typename std::decay::type; static const bool value = std::is_integral::value || std::is_same::value || @@ -555,7 +555,7 @@ public: template void add_choice(T&& choice) { - static_assert(details::is_choice_type_supported::value, "Only string or integer type supported for choice"); + static_assert(details::IsChoiceTypeSupported::value, "Only string or integer type supported for choice"); static_assert(std::is_convertible_v || details::can_invoke_to_string::value, "Choice is not convertible to string_type"); if (!m_choices.has_value()) { m_choices = std::vector{};