Skip to content

Commit 9c7c764

Browse files
author
Hana Dusíková
committed
fixed string fixed
1 parent 96de8f7 commit 9c7c764

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/ctll/fixed_string.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ constexpr length_value_t length_and_value_of_utf16_code_point(uint16_t first_uni
3636
else return {first_unit, 1};
3737
}
3838

39-
template <size_t N> class fixed_string {
40-
private:
39+
template <size_t N> struct fixed_string {
4140
char32_t content[N] = {};
4241
size_t real_size{0};
4342
bool correct_flag{true};
44-
public:
43+
4544
template <typename T> constexpr fixed_string(const T (&input)[N]) noexcept {
4645
if constexpr (std::is_same_v<T, char>) {
4746
#if CTRE_STRING_IS_UTF8

0 commit comments

Comments
 (0)