#include "colls_private.hpp"
+#include <memory>
+
namespace simgrid {
namespace smpi {
(block_size < small_block_size)) {
std::unique_ptr<unsigned char[]> tmp_buf;
if (rank != root) {
- tmp_buf.reset(new unsigned char[rcount * rdtype->get_extent()]);
+ tmp_buf = std::make_unique<unsigned char[]>(rcount * rdtype->get_extent());
sbuf = tmp_buf.get();
scount = rcount;
sdtype = rdtype;