Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Allow to specify a cleanup handler for detached comms.
[simgrid.git] / include / simgrid / kernel / future.hpp
index 777a9f48b2c2a58a9c8ab5a31a5ccbd30f1cd1fe..766d425338524a8ac47c7079d6251af5ef4e372c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2016. The SimGrid Team.
+/* Copyright (c) 2016-2017. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -181,7 +181,7 @@ public:
     xbt_assert(this->value_);
     T* result = value_;
     value_ = nullptr;
-    return *value_;
+    return *result;
   }
 
 private: