We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ada2cdf commit d36caf9Copy full SHA for d36caf9
include/librepr/util/string/const_string.h
@@ -27,9 +27,9 @@ struct [[nodiscard]] const_string {
27
[[nodiscard]] constexpr bool empty() const noexcept { return size == 0; }
28
29
[[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; }
+ friend constexpr auto operator==(const_string lhs, std::string_view rhs) noexcept { return rhs == lhs.value; }
31
};
32
33
template <std::size_t N>
34
const_string(char const (&)[N]) -> const_string<N - 1>;
35
-} // namespace librepr::detail
+} // namespace librepr::detail
0 commit comments