Skip to content

Commit

Permalink
Update value_wrapper.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
beats-dh committed Oct 12, 2024
1 parent 702a7b1 commit 74d85e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/kv/value_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ inline bool ValueWrapper::operator==(const ValueWrapper &rhs) const {

inline bool operator==(const ValueVariant &lhs, const ValueVariant &rhs) {
return std::visit(
[](const auto &a, const auto &b) {
[](const auto &a, const auto &b) -> bool {
using A = std::decay_t<decltype(a)>;
using B = std::decay_t<decltype(b)>;

Expand All @@ -190,6 +190,8 @@ inline bool operator==(const ValueVariant &lhs, const ValueVariant &rhs) {
if constexpr (std::is_same_v<A, B>) {
return a == b;
}

return false;
},
lhs, rhs
);
Expand Down

0 comments on commit 74d85e0

Please sign in to comment.