Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sonar is right: a std:vector is just fine here.
[simgrid.git] / src / smpi / include / smpi_comm.hpp
index 9310454f86a8f64ad289022a6b661455c9d7fb45..dee8666eb4f3e9474849290a8b809157d3947888 100644 (file)
@@ -43,7 +43,7 @@ class Comm : public F2C, public Keyval{
   std::unordered_map<std::string, unsigned int> sent_messages_;
   std::unordered_map<std::string, unsigned int> recv_messages_;
   unsigned int collectives_count_ = 0;
-  std::unique_ptr<unsigned int[]> collectives_counts_; // for MPI_COMM_WORLD only
+  std::vector<unsigned int> collectives_counts_; // for MPI_COMM_WORLD only
 
 public:
   static std::unordered_map<int, smpi_key_elem> keyvals_;