@@ -45,7 +45,7 @@ namespace Core::IO
4545 template <SupportedType T>
4646 void operator ()(std::ostream& out, const T& val) const
4747 {
48- using magic_enum::iostream_operators ::operator <<;
48+ using EnumTools ::operator <<;
4949 out << val;
5050 }
5151
@@ -118,7 +118,7 @@ namespace Core::IO
118118 requires (std::is_enum_v<Enum>)
119119 struct PrettyTypeName <Enum>
120120 {
121- std::string operator ()() { return std::string{magic_enum ::enum_type_name<Enum>()}; }
121+ std::string operator ()() { return std::string{EnumTools ::enum_type_name<Enum>()}; }
122122 };
123123
124124 template <typename T>
@@ -174,7 +174,7 @@ namespace Core::IO
174174 FOUR_C_ASSERT (node.is_map (), " Expected a map node." );
175175 node[" type" ] = " enum" ;
176176 node[" choices" ] |= ryml::SEQ;
177- for (const auto & choice_string : magic_enum ::enum_values<Enum>())
177+ for (const auto & choice_string : EnumTools ::enum_values<Enum>())
178178 {
179179 auto entry = node[" choices" ].append_child ();
180180 // Write every choice entry as a map to easily extend the information at a later point.
@@ -1445,7 +1445,7 @@ bool Core::IO::Internal::ParameterSpec<T>::match(ConstYamlNodeRef node,
14451445 if constexpr (std::is_enum_v<T>)
14461446 {
14471447 std::string choices_string;
1448- for (const auto & e : magic_enum ::enum_names<T>())
1448+ for (const auto & e : EnumTools ::enum_names<T>())
14491449 {
14501450 choices_string += std::string (e) + " |" ;
14511451 }
@@ -1850,7 +1850,7 @@ void Core::IO::Internal::SelectionSpec<T>::print(std::ostream& stream, std::size
18501850 {
18511851 stream << " \n " ;
18521852 stream << " //" << std::string (indent + 2 , ' ' ) << " if value of " << based_on.selector << " is "
1853- << magic_enum ::enum_name<T>(selector_value);
1853+ << EnumTools ::enum_name<T>(selector_value);
18541854 spec.impl ().print (stream, indent + 4 );
18551855 }
18561856 stream << " \n " ;
@@ -1973,12 +1973,12 @@ Core::IO::InputSpec Core::IO::InputSpecBuilders::selection(
19731973 std::string name, Internal::BasedOn<T> based_on, SelectionData data)
19741974{
19751975 // Ensure that every enum constant is mapped to a spec.
1976- for (const auto & e : magic_enum ::enum_values<T>())
1976+ for (const auto & e : EnumTools ::enum_values<T>())
19771977 {
19781978 FOUR_C_ASSERT_ALWAYS (based_on.choices .contains (e),
19791979 " You need to give an InputSpec for every possible value of enum '{}'. Missing "
19801980 " choice for enum constant '{}'." ,
1981- magic_enum ::enum_type_name<T>(), magic_enum ::enum_name (e));
1981+ EnumTools ::enum_type_name<T>(), EnumTools ::enum_name (e));
19821982 }
19831983
19841984 std::size_t max_specs_for_choices = std::ranges::max_element (
0 commit comments