diff --git a/bfps/cpp/particles/abstract_particles_output.hpp b/bfps/cpp/particles/abstract_particles_output.hpp
index ecf42cfe2a6211f2d9eaefc32f3adf2e6333208b..41e02599386d6133bc6c227a49a81226be67cae3 100644
--- a/bfps/cpp/particles/abstract_particles_output.hpp
+++ b/bfps/cpp/particles/abstract_particles_output.hpp
@@ -133,7 +133,7 @@ public:
             nb_particles_allocated_recv = nb_to_receive;
         }
 
-        exchanger.alltoallv(buffer_particles_send.get(), buffer_particles_recv.get(), mpi_movable_particle_type);
+        exchanger.alltoallv_dt(buffer_particles_send.get(), buffer_particles_recv.get(), mpi_movable_particle_type);
 
         // Trick re-use the buffer to have only real_number
 
diff --git a/bfps/cpp/particles/alltoall_exchanger.hpp b/bfps/cpp/particles/alltoall_exchanger.hpp
index de549e6ee9fb0f9ea898584da7d641c173c65195..7b7d4391040703f359f07d5fd6a963eec00e468b 100644
--- a/bfps/cpp/particles/alltoall_exchanger.hpp
+++ b/bfps/cpp/particles/alltoall_exchanger.hpp
@@ -60,7 +60,7 @@ public:
     }
 
     template <class ItemType>
-    void alltoallv(const ItemType in_to_send[],
+    void alltoallv_dt(const ItemType in_to_send[],
                    ItemType out_to_recv[], const MPI_Datatype& in_type) const {
         TIMEZONE("alltoallv");
         AssertMpi(MPI_Alltoallv(const_cast<ItemType*>(in_to_send), const_cast<int*>(nb_items_to_send.data()),
@@ -72,11 +72,11 @@ public:
     template <class ItemType>
     void alltoallv(const ItemType in_to_send[],
                    ItemType out_to_recv[]) const {
-        alltoallv<ItemType>(in_to_send, out_to_recv, particles_utils::GetMpiType(ItemType()));
+        alltoallv_dt<ItemType>(in_to_send, out_to_recv, particles_utils::GetMpiType(ItemType()));
     }
 
     template <class ItemType>
-    void alltoallv(const ItemType in_to_send[],
+    void alltoallv_dt(const ItemType in_to_send[],
                    ItemType out_to_recv[], const MPI_Datatype& in_type, const int in_nb_values_per_item) const {
         TIMEZONE("alltoallv");
         std::vector<int> nb_items_to_send_tmp = nb_items_to_send;
@@ -101,7 +101,7 @@ public:
     template <class ItemType>
     void alltoallv(const ItemType in_to_send[],
                    ItemType out_to_recv[], const int in_nb_values_per_item) const {
-        alltoallv<ItemType>(in_to_send, out_to_recv,particles_utils::GetMpiType(ItemType()), in_nb_values_per_item);
+        alltoallv_dt<ItemType>(in_to_send, out_to_recv,particles_utils::GetMpiType(ItemType()), in_nb_values_per_item);
     }
 };
 
diff --git a/bfps/cpp/particles/particles_input_hdf5.hpp b/bfps/cpp/particles/particles_input_hdf5.hpp
index bd4fece66f94304640154e321d4043e2d5ddff30..fbd29abf83e878cfb1bb243fbc5417130533629d 100644
--- a/bfps/cpp/particles/particles_input_hdf5.hpp
+++ b/bfps/cpp/particles/particles_input_hdf5.hpp
@@ -74,7 +74,7 @@ public:
 
         AssertMpi(MPI_Comm_rank(mpi_comm, &my_rank));
         AssertMpi(MPI_Comm_size(mpi_comm, &nb_processes));
-        assert(in_spatial_limit_per_proc.size() == nb_processes+1);
+        assert(int(in_spatial_limit_per_proc.size()) == nb_processes+1);
 
         hid_t plist_id_par = H5Pcreate(H5P_FILE_ACCESS);
         assert(plist_id_par >= 0);