]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/internals/smpi_utils.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
oops
[simgrid.git] / src / smpi / internals / smpi_utils.cpp
index 66e4ca029665b879039350daea1cc629748b6a98..3973f8b2c2c6d297f9a0963cb076a786c91c4cdc 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2016-2020. The SimGrid Team.
+/* Copyright (c) 2016-2021. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -14,7 +14,7 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_utils, smpi, "Logging specific to SMPI (utils)");
 
-extern std::string& surf_parsed_filename;
+extern std::string surf_parsed_filename;
 extern int surf_parse_lineno;
 
 std::vector<s_smpi_factor_t> parse_factor(const std::string& smpi_coef_string)
@@ -22,7 +22,7 @@ std::vector<s_smpi_factor_t> parse_factor(const std::string& smpi_coef_string)
   std::vector<s_smpi_factor_t> smpi_factor;
 
   /** Setup the tokenizer that parses the string **/
-  typedef boost::tokenizer<boost::char_separator<char>> Tokenizer;
+  using Tokenizer = boost::tokenizer<boost::char_separator<char>>;
   boost::char_separator<char> sep(";");
   boost::char_separator<char> factor_separator(":");
   Tokenizer tokens(smpi_coef_string, sep);