From: Martin Quinson Date: Wed, 13 Feb 2013 08:07:59 +0000 (+0100) Subject: add another word about the trap of dynar_search with pointed elements X-Git-Tag: v3_9_90~494^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8f8339b1dc8092a6c2be14063ea16dc7cb47e698 add another word about the trap of dynar_search with pointed elements --- diff --git a/include/xbt/dynar.h b/include/xbt/dynar.h index 735b62549f..12cfb02c33 100644 --- a/include/xbt/dynar.h +++ b/include/xbt/dynar.h @@ -52,6 +52,12 @@ SG_BEGIN_DECL() * \skip end_of_doxygen * \until } * + * Note that if you use dynars to store pointed data, the + * xbt_dynar_search(), xbt_dynar_search_or_negative() and + * xbt_dynar_member() will not quite for you. Instead of comparing + * your pointed elements, they will compare the pointer to them. See + * the documentation of xbt_dynar_search() for more info. + * */ /** @defgroup XBT_dynar_cons Dynar constructor and destructor * @ingroup XBT_dynar