Skip to content

Commit

Permalink
Update DataColumn classes
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Jul 15, 2024
1 parent d4207e2 commit d01fd61
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions include/momo/DataColumn.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ enum class DataColumnCodeOffset : size_t
};

template<>
struct HashCoder<DataColumnCodeOffset, size_t> // c++11
struct HashCoder<DataColumnCodeOffset, size_t> // gcc 4.9, clang 3.6
{
size_t operator()(const DataColumnCodeOffset& key) const noexcept
{
Expand Down Expand Up @@ -107,6 +107,12 @@ namespace internal
typedef typename TColumn::Item Item;
};

template<typename TItem, typename TStruct>
struct DataColumnItemSelector<TItem TStruct::*>
{
typedef TItem Item; //?
};

template<typename TStruct, typename TCode>
class DataColumnInfoBase
{
Expand Down Expand Up @@ -561,7 +567,9 @@ class DataColumnInfoNative : public internal::DataColumnInfoBase<TStruct, DataCo
typedef internal::DataColumnInfoBase<TStruct, DataColumnCodeOffset> ColumnInfoBase;

public:
using typename ColumnInfoBase::Struct;
typedef TStruct Struct;
//using typename ColumnInfoBase::Struct; // vs2017

using typename ColumnInfoBase::Code;

template<typename Item>
Expand Down

0 comments on commit d01fd61

Please sign in to comment.