55#include < stdexcept>
66#include < string>
77#include < type_traits>
8+ #include < typeinfo>
9+ #include < utility>
810#include < variant>
911
1012namespace config {
1113
12- // Legacy variant type for backward compatibility
1314using SettingValueType = std::variant<int , float , double , std::string, bool >;
1415
1516// Forward declaration of Setting
@@ -37,7 +38,7 @@ using default_setting_type_t = typename default_setting_type<E, SettingVariant,
3738 * @brief Compile-time check if a type is valid for an enum value based on defaults
3839 */
3940template <typename E, typename SettingVariant, E EnumValue, typename T>
40- inline constexpr bool is_valid_type_v = std::is_same_v<default_setting_type_t <E, SettingVariant, EnumValue>, T>;
41+ inline constexpr bool is_valid_type_v = std::is_same_v<default_setting_type_t <E, SettingVariant, EnumValue>, T>; // NOLINT(readability-identifier-naming)
4142
4243/* *
4344 * @brief Type trait to associate enum values with their types at compile time
@@ -48,7 +49,7 @@ inline constexpr bool is_valid_type_v = std::is_same_v<default_setting_type_t<E,
4849 * @tparam Enable SFINAE enabler
4950 */
5051template <typename E, E EnumValue, typename Enable = void >
51- struct setting_type_trait {
52+ struct setting_type_trait { // NOLINT(readability-identifier-naming)
5253 // Default implementation provides a compile error
5354 static_assert (sizeof (E) == 0 ,
5455 " You must specialize setting_type_trait for your enum values" );
@@ -73,7 +74,7 @@ using setting_type = typename setting_type_trait<E, EnumValue>::type;
7374 * @tparam T The type to check against
7475 */
7576template <typename E, E EnumValue, typename T>
76- inline constexpr bool is_correct_type_v = std::is_same_v<setting_type<E, EnumValue>, T>;
77+ inline constexpr bool is_correct_type_v = std::is_same_v<setting_type<E, EnumValue>, T>; // NOLINT(readability-identifier-naming)
7778
7879/* *
7980 * @brief Generic Setting class that is strongly typed
0 commit comments