if (elem->copy_fn.comm_copy_fn == MPI_COMM_DUP_FN ||
((elem->copy_fn.comm_copy_fn_fort != MPI_NULL_COPY_FN) && *(int*)*elem->copy_fn.comm_copy_fn_fort == 1)) {
elem->refcount++;
- (*newcomm)->attributes().insert({it.first, it.second});
+ (*newcomm)->attributes().emplace(it.first, it.second);
} else if (flag) {
elem->refcount++;
- (*newcomm)->attributes().insert({it.first, value_out});
+ (*newcomm)->attributes().emplace(it.first, value_out);
}
}
}