Skip to content

Commit

Permalink
DataEquality
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Jul 14, 2024
1 parent bd698e0 commit 252af9f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions include/momo/DataColumn.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,23 +219,24 @@ namespace internal
template<typename... Columns>
class DataEquality
{
private:
typedef std::tuple<DataEquality<Columns>...> Tuple;

public:
DataEquality(std::pair<const Columns&,
const typename internal::DataColumnItemSelector<Columns>::Item&>... pairs) noexcept
: mTuple(pairs...)
{
}

DataEquality(DataEquality&&) = default;

DataEquality(const DataEquality&) = delete;

~DataEquality() noexcept = default;

DataEquality& operator=(const DataEquality&) = delete;

template<size_t index>
decltype(auto) Get() const noexcept
const std::tuple_element_t<index, Tuple>& Get() const noexcept
{
return std::get<index>(mTuple);
}
Expand All @@ -261,7 +262,7 @@ class DataEquality
}

private:
std::tuple<DataEquality<Columns>...> mTuple;
Tuple mTuple;
};

template<typename Column>
Expand All @@ -282,8 +283,6 @@ class DataEquality<Column>
{
}

DataEquality(DataEquality&&) = default;

DataEquality(const DataEquality&) = delete;

~DataEquality() noexcept = default;
Expand Down

0 comments on commit 252af9f

Please sign in to comment.