Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Replace the use of "::type" with the "_t" version of type traits.
[simgrid.git] / src / instr / instr_paje_events.hpp
index e356fb2..266f328 100644 (file)
@@ -40,7 +40,7 @@ enum class PajeEventType : unsigned int {
 
 inline std::ostream& operator<<(std::ostream& os, PajeEventType event)
 {
-  return os << static_cast<std::underlying_type<PajeEventType>::type>(event);
+  return os << static_cast<std::underlying_type_t<PajeEventType>>(event);
 }
 
 class PajeEvent {