diff --git a/libsrc/core/mpi_wrapper.hpp b/libsrc/core/mpi_wrapper.hpp index a110912c..f6e70dab 100644 --- a/libsrc/core/mpi_wrapper.hpp +++ b/libsrc/core/mpi_wrapper.hpp @@ -537,8 +537,8 @@ namespace ngcore class NgMPI_Requests { public: - NgMPI_Requests operator+= (NgMPI_Request &&) { ; } - NgMPI_Requests operator+= (NG_MPI_Request r) { ; } + NgMPI_Requests & operator+= (NgMPI_Request &&) { return *rhis; } + NgMPI_Requests & operator+= (NG_MPI_Request r) { return *this; } void WaitAll() { ; } int WaitAny() { return 0; } };