]> AND Public Git Repository - simgrid.git/blobdiff - include/xbt/dynar.h
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / include / xbt / dynar.h
index 83621209faa6f6a54c7330a537671652c8ee12d7..fa25a74140c4d3a97991135755c308aead3c477b 100644 (file)
@@ -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).
   *
+  * @deprecated 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 */