I hope this is an "easy" question.
I would like to know if there is a way to know how many columns a table
has. I would like to use the equal list similar to the sample code, but
the size of the vector<bool> is "hard coded" with the number of columns.
Is there a variable I can look at to get the number of columns on a
vector<bool> v(5, false);
v[stock_weight] = true;
v[stock_price] = true;
query << "select * from stock where "
<< res.equal_list(" and ", v);
I am looking for a variable to replace "5" in the above code.