mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
Updated one more line of code to avoid making the test dependent on cxx11 features.
This commit is contained in:
parent
43d9dd9b28
commit
ff8e0ecc2f
@ -143,7 +143,8 @@ static void UpdateCoeffSet(
|
|||||||
|
|
||||||
for (int i = 0; i < block_sizes[dim_index]; ++i) {
|
for (int i = 0; i < block_sizes[dim_index]; ++i) {
|
||||||
if (tensor_strides[dim_index] == 1) {
|
if (tensor_strides[dim_index] == 1) {
|
||||||
auto inserted = visited_coeffs->insert(first_coeff_index + i);
|
typedef std::pair<std::set<Index>::iterator, bool> ReturnType;
|
||||||
|
ReturnType inserted = visited_coeffs->insert(first_coeff_index + i);
|
||||||
VERIFY_IS_EQUAL(inserted.second, true);
|
VERIFY_IS_EQUAL(inserted.second, true);
|
||||||
} else {
|
} else {
|
||||||
int next_dim_index = dim_index + choose(Layout, -1, 1);
|
int next_dim_index = dim_index + choose(Layout, -1, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user