I tried to create a vector of tuple as follows:
import ROOT
a = ROOT.std.vector('tuple<long, long, double, double>')
b = ROOT.std.make_tuple(1, 2, 3, 4)
a.push_back(b)
The error message is:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: none of the 2 overloaded methods succeeded. Full details:
void std::vector<tuple<long,long,double,double>
>::push_back(tuple<long,long,double,double>&& __x) =>
TypeError: unbound method vector<tuple<long,long,double,double>
>::push_back must be called with a vector<tuple<long,long,double,double> >
instance as first argument
void std::vector<tuple<long,long,double,double> >::push_back(const
tuple<long,long,double,double>& __x) =>
TypeError: unbound method vector<tuple<long,long,double,double> >::push_back
must be called with a vector<tuple<long,long,double,double> > instance as first argument
Any help are appreciated
ROOT Version: 6.22/02
Platform: ubuntu
Compiler: gcc