Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use s4u API in example.
[simgrid.git] / src / instr / instr_smpi.hpp
index 9b01f6f..8b08e92 100644 (file)
@@ -36,7 +36,8 @@ XBT_PRIVATE char* smpi_container(int rank, char* container, int n);
 
 XBT_PRIVATE const char* encode_datatype(MPI_Datatype datatype, int* known);
 
-typedef struct smpi_trace_call_location {
+class smpi_trace_call_location_t {
+public:
   const char* filename;
   int linenumber;
 
@@ -48,8 +49,7 @@ typedef struct smpi_trace_call_location {
     return std::string(previous_filename) + ':' + std::to_string(previous_linenumber) + ':' + filename + ':' +
            std::to_string(linenumber);
   }
-
-} smpi_trace_call_location_t;
+};
 }
 
 #endif