]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/remote/RemotePtr.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move the logic of Api::get_maxpid() to RemoteProcess where it belongs
[simgrid.git] / src / mc / remote / RemotePtr.hpp
index e3f0371fb4ac54a0be5d0baf28051fed2318a1be..42115420fd12ad670725f9d5db3998e7147b1a72 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2008-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2008-2021. 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. */
@@ -27,7 +27,7 @@ namespace mc {
  */
 template <class T> class Remote {
 private:
-  typename std::aligned_storage<sizeof(T), alignof(T)>::type buffer;
+  typename std::aligned_storage_t<sizeof(T), alignof(T)> buffer;
 
 public:
   Remote() = default;
@@ -135,7 +135,7 @@ template <class T = void> inline RemotePtr<T> remote(uint64_t p)
 {
   return RemotePtr<T>(p);
 }
-}
-}
+} // namespace mc
+} // namespace simgrid
 
 #endif