A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[s4u] Activity ought not to be copied
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Activity.hpp
diff --git
a/include/simgrid/s4u/Activity.hpp
b/include/simgrid/s4u/Activity.hpp
index
222c932
..
0b8d303
100644
(file)
--- a/
include/simgrid/s4u/Activity.hpp
+++ b/
include/simgrid/s4u/Activity.hpp
@@
-7,18
+7,17
@@
#ifndef SIMGRID_S4U_ACTIVITY_HPP
#define SIMGRID_S4U_ACTIVITY_HPP
#ifndef SIMGRID_S4U_ACTIVITY_HPP
#define SIMGRID_S4U_ACTIVITY_HPP
-#include <stdlib.h>
+#include <cstdlib>
+
#include <xbt/base.h>
#include <xbt/misc.h>
#include <simgrid/s4u/forward.hpp>
#include <xbt/base.h>
#include <xbt/misc.h>
#include <simgrid/s4u/forward.hpp>
-#include
"simgrid/forward.h"
+#include
<simgrid/forward.h>
-SG_BEGIN_DECL();
typedef enum {
inited, started, finished
} e_s4u_activity_state_t;
typedef enum {
inited, started, finished
} e_s4u_activity_state_t;
-SG_END_DECL();
namespace simgrid {
namespace s4u {
namespace simgrid {
namespace s4u {
@@
-34,6
+33,9
@@
protected:
virtual ~Activity();
public:
virtual ~Activity();
public:
+ Activity(Activity const&) = delete;
+ Activity& operator=(Activity const&) = delete;
+
/** Starts a previously created activity.
*
* This function is optional: you can call wait() even if you didn't call start()
/** Starts a previously created activity.
*
* This function is optional: you can call wait() even if you didn't call start()