/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "private.h"
+#include "private.hpp"
#include "smpi_coll.hpp"
#include "smpi_comm.hpp"
#include "smpi_datatype.hpp"
int recvs_snd[count_requests];
int recvs_rcv[count_requests];
unsigned int i=0;
- for (auto req : *(get_reqq_self())){
+ for (auto const& req : *(get_reqq_self())) {
if (req && (req->flags () & RECV)){
recvs_snd[i]=req->src();
recvs_rcv[i]=req->dst();
MPI_Status status[count_requests];
unsigned int i=0;
- for (auto req: *get_reqq_self()){
+ for (auto const& req : *get_reqq_self()) {
requests[i] = req;
i++;
}