X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f6cbb176d4301cae36a945dfa57e6b6a9cbafef..4667db33a753d88cbcd186f191fb1e65f49f4bd6:/include/xbt/heap.h diff --git a/include/xbt/heap.h b/include/xbt/heap.h index 4d9ef1d889..8ab575331d 100644 --- a/include/xbt/heap.h +++ b/include/xbt/heap.h @@ -36,4 +36,16 @@ XBT_PUBLIC(void ) xbt_heap_update(xbt_heap_t H, int i, double key); /* @} */ SG_END_DECL() + +#ifdef __cplusplus +namespace simgrid { +namespace xbt { + inline void destroy(xbt_heap_t h) + { + xbt_heap_free(h); + } +} +} +#endif + #endif /* _XBT_HEAP_H */