mirror of
https://github.com/boostorg/array.git
synced 2025-07-30 04:37:21 +02:00
No sense in failing just because a compiler doesn't implement correct for loop scoping!
[SVN r15327]
This commit is contained in:
@ -10,8 +10,8 @@ void test_static_size (const T& cont)
|
|||||||
for (unsigned i=0; i<T::static_size; ++i) {
|
for (unsigned i=0; i<T::static_size; ++i) {
|
||||||
tmp[i] = int(cont[i]);
|
tmp[i] = int(cont[i]);
|
||||||
}
|
}
|
||||||
for (unsigned i=0; i<T::static_size; ++i) {
|
for (unsigned j=0; j<T::static_size; ++j) {
|
||||||
std::cout << tmp[i] << ' ';
|
std::cout << tmp[j] << ' ';
|
||||||
}
|
}
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user