X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cfc676704bebcd57e5ea98bb43154245a150948f..bace8e5a6ff160e200f799250796c5303dc487ba:/include/xbt/dynar.h diff --git a/include/xbt/dynar.h b/include/xbt/dynar.h index 6dcebc9fc0..8aa9d0db01 100644 --- 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 */