Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suppresses
-Wuseless-cast
for static_cast<char_type>('\0')
needed in case 'char_type' is 'char' (common on Linux but rare on Windows?) ```text [..]/magic_enum.hpp:275:114: warning: useless cast to type ‘using magic_enum::char_type = using std::basic_string_view<char>::value_type = char’ {aka ‘char’} [-Wuseless-cast] 275 | constexpr static_str(string_view str, std::integer_sequence<std::uint16_t, I...>) noexcept : chars_{str[I]..., static_cast<char_type>('\0')} {} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```