Skip to content

Commit d36caf9

Browse files
authored
fix bug
1 parent ada2cdf commit d36caf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/librepr/util/string/const_string.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ struct [[nodiscard]] const_string {
2727
[[nodiscard]] constexpr bool empty() const noexcept { return size == 0; }
2828

2929
[[nodiscard]] constexpr char const& operator[](std::size_t Idx) const { return value[Idx]; }
30-
friend constexpr auto operator==(const_string lhs, std::string_view rhs) noexcept { return rhs == lhs.data; }
30+
friend constexpr auto operator==(const_string lhs, std::string_view rhs) noexcept { return rhs == lhs.value; }
3131
};
3232

3333
template <std::size_t N>
3434
const_string(char const (&)[N]) -> const_string<N - 1>;
35-
} // namespace librepr::detail
35+
} // namespace librepr::detail

0 commit comments

Comments
 (0)