Abdelrazak Younes wrote:
On 03/05/2010 11:56 AM, Edwin Leuven wrote:
now when looping i write something like this:
row_type const nrows = row_info.size();
for (row_type r = 0; r < nrows; ++r) {
are compilers these days smart enough so that we can simply write:
for (row_type r = 0; r < row_info.size(); ++r) {
I guess it depends of the constness of row_info...
it's a non-const std::vector
what if i declared
row_type nrows() const {return row_info.size();}
and then do
for (row_type r = 0; r < nrows(); ++r)
?