S
Sean Connery
Hi,
I have the following type and variable:
typedef boost::multi_array_ref<T,2> array_2d_ref;
array_2d_ref cpr_table(pT,boost::extents [range(1,360)]
[range(1,2)]);
When I try to iterate through it using the shape() function as follows:
for(index i = 1; i <= cpr_table.shape()[0]; ++i)
{
for(index j = 1; j <= cpr_table.shape()[1]; ++j)
{
cout << cpr_table[j].val.num << " ";
}
cout << endl;
}
I get signed/vs unsigned warnings.
I don't want to turn these off, nor do I want to ignore them for any
translation unit. How can I iterate through this array using the 2-d
C-array semantics without iterators?
Also, if there is a better newsgroup, please let me know.
Thanks
Sean
PS: Catch me in my latest movie, james bond 008.
I have the following type and variable:
typedef boost::multi_array_ref<T,2> array_2d_ref;
array_2d_ref cpr_table(pT,boost::extents [range(1,360)]
[range(1,2)]);
When I try to iterate through it using the shape() function as follows:
for(index i = 1; i <= cpr_table.shape()[0]; ++i)
{
for(index j = 1; j <= cpr_table.shape()[1]; ++j)
{
cout << cpr_table[j].val.num << " ";
}
cout << endl;
}
I get signed/vs unsigned warnings.
I don't want to turn these off, nor do I want to ignore them for any
translation unit. How can I iterate through this array using the 2-d
C-array semantics without iterators?
Also, if there is a better newsgroup, please let me know.
Thanks
Sean
PS: Catch me in my latest movie, james bond 008.