Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Use std::function.
[simgrid.git] / src / smpi / mpi / smpi_datatype.cpp
index d27cb16..8da3527 100644 (file)
@@ -1,5 +1,5 @@
 /* smpi_datatype.cpp -- MPI primitives to handle datatypes                  */
-/* Copyright (c) 2009-2018. The SimGrid Team.  All rights reserved.         */
+/* Copyright (c) 2009-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -221,7 +221,7 @@ const char* Datatype::encode(MPI_Datatype dt)
   return dt->id.c_str();
 }
 
-MPI_Datatype Datatype::decode(std::string datatype_id)
+MPI_Datatype Datatype::decode(const std::string& datatype_id)
 {
   return id2type_lookup.find(datatype_id)->second;
 }