From 8f8339b1dc8092a6c2be14063ea16dc7cb47e698 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 13 Feb 2013 09:07:59 +0100 Subject: [PATCH] add another word about the trap of dynar_search with pointed elements --- include/xbt/dynar.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.20.1