Updated one more line of code to avoid making the test dependent on cxx11 features.

This commit is contained in:
Benoit Steiner 2018-08-17 15:15:52 -07:00
parent 43d9dd9b28
commit ff8e0ecc2f

View File

@ -143,7 +143,8 @@ static void UpdateCoeffSet(
for (int i = 0; i < block_sizes[dim_index]; ++i) {
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);
} else {
int next_dim_index = dim_index + choose(Layout, -1, 1);