From fd726fd3413875d179057cb67bb53fb0c551cc9e Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Fri, 27 Oct 2023 10:53:52 -0500 Subject: [PATCH] Fixed clang tidy warning about struct name --- include/argparse/argparse.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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{};