X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/892e136b3be07e45110a5a2db2889470386e954a..a07e0280b245200f483e170d446156f1dea261f3:/include/xbt/dynar.h diff --git a/include/xbt/dynar.h b/include/xbt/dynar.h index 83621209fa..874eb46f5b 100644 --- a/include/xbt/dynar.h +++ b/include/xbt/dynar.h @@ -25,6 +25,8 @@ SG_BEGIN_DECL() * \ref XBT_dict section). You thus have to provide the function which will be used to free the content at * structure creation (of type void_f_ppvoid_t or void_f_pvoid_t). * + * If you are using C++, you might want to use `std::vector` instead. + * * \section XBT_dynar_exscal Example with scalar * \dontinclude dynar.cpp * @@ -258,15 +260,4 @@ xbt_dynar_foreach (dyn,cpt,str) { /** @} */ 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 */