From: Gabriel Corona Date: Thu, 30 Jun 2016 08:13:19 +0000 (+0200) Subject: Some #include fixes X-Git-Tag: v3_14~832 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/02dd785d0212ccd8376c2ce4fd931942232fcafb?hp=e167326c1369032305b7eb87e166b12d6690df64 Some #include fixes --- diff --git a/include/simgrid/s4u/mutex.hpp b/include/simgrid/s4u/mutex.hpp index ff60143540..bf4e00d1ca 100644 --- a/include/simgrid/s4u/mutex.hpp +++ b/include/simgrid/s4u/mutex.hpp @@ -9,7 +9,6 @@ #include #include -#include #include #include "simgrid/simix.h" diff --git a/include/xbt/signal.hpp b/include/xbt/signal.hpp index 08fbff611a..508822cf2b 100644 --- a/include/xbt/signal.hpp +++ b/include/xbt/signal.hpp @@ -7,6 +7,7 @@ #define SIMGRID_XBT_SIGNAL_HPP #include +#include #include namespace simgrid { @@ -26,12 +27,11 @@ namespace xbt { typedef std::function callback_type; std::vector handlers_; public: - template XBT_ALWAYS_INLINE + template void connect(U slot) { handlers_.push_back(std::move(slot)); } - XBT_ALWAYS_INLINE R operator()(P... args) const { for (auto& handler : handlers_) diff --git a/src/surf/cpu_ti.hpp b/src/surf/cpu_ti.hpp index 7f5e474481..4f70915a7f 100644 --- a/src/surf/cpu_ti.hpp +++ b/src/surf/cpu_ti.hpp @@ -4,6 +4,8 @@ /* 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. */ +#include + #include #include "src/surf/cpu_interface.hpp" diff --git a/src/surf/surf_interface.hpp b/src/surf/surf_interface.hpp index 937297032b..51e5d8b804 100644 --- a/src/surf/surf_interface.hpp +++ b/src/surf/surf_interface.hpp @@ -6,6 +6,8 @@ #ifndef SURF_MODEL_H_ #define SURF_MODEL_H_ +#include + #include #include #include diff --git a/src/surf/virtual_machine.cpp b/src/surf/virtual_machine.cpp index 43fa47e1f4..4b4a8957df 100644 --- a/src/surf/virtual_machine.cpp +++ b/src/surf/virtual_machine.cpp @@ -4,6 +4,8 @@ /* 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. */ +#include + #include "cpu_cas01.hpp" #include "virtual_machine.hpp" diff --git a/src/surf/virtual_machine.hpp b/src/surf/virtual_machine.hpp index b65d29198b..5b1396d92e 100644 --- a/src/surf/virtual_machine.hpp +++ b/src/surf/virtual_machine.hpp @@ -4,6 +4,8 @@ /* 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. */ +#include + #include #include "src/surf/HostImpl.hpp"