fix code style
This commit is contained in:
parent
a01e3d26b9
commit
04578f3316
1 changed files with 4 additions and 4 deletions
|
@ -245,7 +245,7 @@ template <std::size_t N>
|
||||||
|
|
||||||
template <typename Char, typename Traits, std::size_t N>
|
template <typename Char, typename Traits, std::size_t N>
|
||||||
std::basic_ostream<Char, Traits>& operator<<(std::basic_ostream<Char, Traits>& os, const cstring<N>& srt) {
|
std::basic_ostream<Char, Traits>& operator<<(std::basic_ostream<Char, Traits>& os, const cstring<N>& srt) {
|
||||||
for (auto c : std::string_view{srt}) {
|
for (const auto c : std::string_view{srt}) {
|
||||||
os.put(c);
|
os.put(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ class enum_traits {
|
||||||
static constexpr std::string_view name(E value) noexcept {
|
static constexpr std::string_view name(E value) noexcept {
|
||||||
if (static_cast<U>(value) >= static_cast<U>(min_v<E>) && static_cast<U>(value) <= static_cast<U>(max_v<E>)) {
|
if (static_cast<U>(value) >= static_cast<U>(min_v<E>) && static_cast<U>(value) <= static_cast<U>(max_v<E>)) {
|
||||||
if constexpr (sparsity_v<E>) {
|
if constexpr (sparsity_v<E>) {
|
||||||
if (auto i = indexes_[static_cast<U>(value) - min_v<E>]; i != invalid_index_v<E>) {
|
if (const auto i = indexes_[static_cast<U>(value) - min_v<E>]; i != invalid_index_v<E>) {
|
||||||
return strings_[i];
|
return strings_[i];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue