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
unique_ptr for dynar, automaton, swag, etc.
[simgrid.git]
/
include
/
xbt
/
dynar.h
diff --git
a/include/xbt/dynar.h
b/include/xbt/dynar.h
index 6dcebc9fc020a5ba09a549f3d1b29bd5c520bc21..8aa9d0db016ce331f674d3e8ccf8e1c7ef175698 100644
(file)
--- a/
include/xbt/dynar.h
+++ b/
include/xbt/dynar.h
@@
-256,6
+256,17
@@
xbt_dynar_foreach (dyn,cpt,str) {
(_cursor)++ )
#endif
/** @} */
-
SG_END_DECL()
+
+#ifdef __cplusplus
+namespace simgrid {
+namespace xbt {
+ inline void destroy(xbt_dynar_t s)
+ {
+ xbt_dynar_free(&s);
+ }
+}
+}
+#endif
+
#endif /* _XBT_DYNAR_H */