Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Introduce next XBT_DEPRECATED macro.
[simgrid.git] / include / xbt / signal.hpp
index a5e6544..36bd87f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2014-2020. 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. */
@@ -23,7 +23,7 @@ namespace xbt {
   */
   template<class R, class... P>
   class signal<R(P...)> {
-    typedef std::function<R(P...)> callback_type;
+    using callback_type = std::function<R(P...)>;
     std::map<unsigned int, callback_type> handlers_;
     unsigned int callback_sequence_id = 0;