Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pass large parameter by const reference.
[simgrid.git] / src / smpi / include / smpi_group.hpp
index 1ee962b..db5e93d 100644 (file)
@@ -25,8 +25,8 @@ class Group : public F2C{
 
   int refcount_ = 1; /* refcount_: start > 0 so that this group never gets freed */
 
-  int incl(const std::vector<int> ranks, MPI_Group* newgroup) const;
-  int excl(const std::vector<bool> excl_map, MPI_Group* newgroup) const;
+  int incl(const std::vector<int>& ranks, MPI_Group* newgroup) const;
+  int excl(const std::vector<bool>& excl_map, MPI_Group* newgroup) const;
 
 public:
   Group() = default;