1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

remove static assert for static string because it does not solve issue (#125)

This commit is contained in:
rpatters1 2022-01-29 10:46:28 -06:00 committed by GitHub
parent 08089871af
commit ab2bf820e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,7 +180,6 @@ struct char_equal_to {
template <std::size_t N>
class static_string {
static_assert(N < UINT16_MAX, "Length of static_string must be less than UINT16_MAX.");
public:
constexpr explicit static_string(string_view str) noexcept : static_string{str, std::make_index_sequence<N>{}} {
assert(str.size() == N);