diff --git a/include/utempl/constexpr_string.hpp b/include/utempl/constexpr_string.hpp index 206695d..bc14916 100644 --- a/include/utempl/constexpr_string.hpp +++ b/include/utempl/constexpr_string.hpp @@ -2,9 +2,9 @@ #include namespace utempl { - template - struct ConstexprString; -}; +template +struct ConstexprString; +} // namespace utempl template struct fmt::formatter> : public fmt::formatter { @@ -37,7 +37,6 @@ struct ConstexprString { inline constexpr ConstexprString() = default; inline constexpr ConstexprString(const char (&data)[Size]) : data{} { std::ranges::copy_n(data, Size, this->data.begin()); - }; inline constexpr ConstexprString(std::string data) : data{} { std::ranges::copy_n(data.begin(), Size, this->data.begin()); diff --git a/include/utempl/menu.hpp b/include/utempl/menu.hpp index 5d97183..3701aad 100644 --- a/include/utempl/menu.hpp +++ b/include/utempl/menu.hpp @@ -78,7 +78,7 @@ struct Menu { return [&](std::index_sequence){ constexpr auto list = ListFromTuple(storage); return GetMax(std::array{(std::remove_cvref_t(list))>().need)>::kSize != 0 ? std::remove_cvref_t(list))>().need)>::kSize : CountDigits(Is))...}); - }(std::make_index_sequence()); + }(std::index_sequence_for()); }; template constexpr auto With(F&& f) const { @@ -129,7 +129,7 @@ struct Menu { }; }; }(Wrapper{}), ...); - }(std::make_index_sequence()); + }(std::index_sequence_for()); }; }; diff --git a/include/utempl/tuple.hpp b/include/utempl/tuple.hpp index 524e764..0087d25 100644 --- a/include/utempl/tuple.hpp +++ b/include/utempl/tuple.hpp @@ -71,7 +71,7 @@ struct Tuple : public impl::TupleHelper, Ts...> { inline constexpr auto operator+(const Tuple& other) const -> Tuple { return [&](std::index_sequence, std::index_sequence) -> Tuple { return {Get(*this)..., Get(other)...}; - }(std::make_index_sequence(), std::make_index_sequence()); + }(std::index_sequence_for(), std::index_sequence_for()); }; template inline constexpr auto operator[](Wrapper) const -> const auto& { diff --git a/include/utempl/type_list.hpp b/include/utempl/type_list.hpp index 41a9b6d..59fcc9e 100644 --- a/include/utempl/type_list.hpp +++ b/include/utempl/type_list.hpp @@ -52,7 +52,7 @@ template consteval auto Reverse(TypeList list) { return [&](std::index_sequence) -> TypeList(list))...> { return {}; - }(std::make_index_sequence()); + }(std::index_sequence_for()); }; template