while doing groupby2 in above code snippet, i am getting In template: no matching function for call to object of type 'typename tuple_element<2UL, tuple<const char *, const char *, SumVisitor<double, unsigned long>>>::type' (aka 'hmdf::SumVisitor<double>') error
`
include <DataFrame/DataFrame.h> // Main DataFrame header
include <DataFrame/DataFrameFinancialVisitors.h> // Financial algorithms
include <DataFrame/DataFrameMLVisitors.h> // Machine-learning algorithms
include <DataFrame/DataFrameStatsVisitors.h> // Statistical algorithms
include <DataFrame/Utils/DateTime.h>
include
include
using namespace hmdf; using namespace std; using namespace chrono;
using StrDataFrame = StdDataFrame;
using MyDataFrame = StdDataFrame;
random_device rd;
mt19937 generator(rd());
uniform_real_distribution dist(1, 100);
uniform_int_distribution side_dist(0, 1);
void generate_data(StrDataFrame *df, int users_count, int symbol_count) { for (int i = 0; i < users_count; ++i) {
}
static std::vector calculate_pnl(StrDataFrame::IndexVecType::const_iterator idx_begin,
StrDataFrame::IndexVecType::const_iterator idx_end,
std::vector::const_iterator b_entry_price,
std::vector::const_iterator e_entry_price,
std::vector::const_iterator b_side,
std::vector::const_iterator e_side,
std::vector::const_iterator b_amount,
std::vector::const_iterator e_amount
) {
}
int main(int, char *[]) {
} auto start = high_resolution_clock::now();
} `
while doing groupby2 in above code snippet, i am getting
In template: no matching function for call to object of type 'typename tuple_element<2UL, tuple<const char *, const char *, SumVisitor<double, unsigned long>>>::type' (aka 'hmdf::SumVisitor<double>')
errorcan someone help me where i am doing mistake