mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
parent
1f9e8c2993
commit
a8c9e57fbe
1 changed files with 1 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue