X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkAny.h;h=a343e79c5632a811a66a2535a416a4856686a422;hb=a280c10c9ba7730cd9105a91bf1a40e72503a6e3;hp=3be259f0d600aaf3830d49561d17731929d941b5;hpb=6575a389b71b1b85c79e4444885becb76ecf16e4;p=bbtk.git diff --git a/kernel/src/bbtkAny.h b/kernel/src/bbtkAny.h index 3be259f..a343e79 100644 --- a/kernel/src/bbtkAny.h +++ b/kernel/src/bbtkAny.h @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkAny.h,v $ Language: C++ - Date: $Date: 2008/10/17 08:18:12 $ - Version: $Revision: 1.5 $ + Date: $Date: 2009/03/30 14:42:16 $ + Version: $Revision: 1.7 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -333,13 +333,13 @@ namespace bbtk /// Returns true iff the contained type is a pointer inline bool contains_pointer() { - return content->is_pointer() ; + return content ? content->is_pointer() : false; } /// Returns true iff the contained type is t inline bool contains(TypeInfo t) { - return ( (bool)(type() == t) ); + return ( (bool)((type() == t)!=0) ); } /// Returns true iff any of type ValueType can be held