]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkAny.h
MagicBox : support of data synchronization + various related fixes
[bbtk.git] / kernel / src / bbtkAny.h
index 3be259f0d600aaf3830d49561d17731929d941b5..a343e79c5632a811a66a2535a416a4856686a422 100644 (file)
@@ -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