- xbt_dict_foreach(comm->attributes, cursor, key, value){
- smpi_comm_key_elem elem =
- static_cast<smpi_comm_key_elem>(xbt_dict_get_or_null(smpi_comm_keyvals, reinterpret_cast<const char*>(key)));
- if(elem!=nullptr && elem->delete_fn!=nullptr)
- elem->delete_fn(comm, *key, value, &flag);
+ xbt_dict_foreach (comm->attributes, cursor, key, value) {
+ smpi_comm_key_elem elem = static_cast<smpi_comm_key_elem>(xbt_dict_get_or_null(smpi_comm_keyvals, key));
+ if (elem != nullptr && elem->delete_fn != nullptr)
+ elem->delete_fn(comm, atoi(key), value, &flag);