Dear all,

I have the problem:

vec1 is of the type vector<boost::tuple<int, double>>
vec2 is of the type vector<boost::tuple<int, double, double>>
vec3 is of the type vector<boost::tuple<int, double, string>>

I have to write a template with name columnViewOfTuple such that

columnViewOfTuple<0>(vec1)
columnViewOfTuple<1>(vec1)

columnViewOfTuple<0>(vec2)
columnViewOfTuple<1>(vec2)
columnViewOfTuple<2>(vec2)

columnViewOfTuple<1>(vec3)
columnViewOfTuple<2>(vec3)

returns the view of the specified column.


Can anybody give me some clues?