Boost logo

Boost :

From: Eric Friedman (ebf_at_[hidden])
Date: 2003-10-28 20:38:50


How important is it that assertion below always be true? (Or stated
negatively, how difficult would life be if it were sometimes not true?)

   template <typename T>
   void f(any & a1, any & a2)
   {
     T* p1 = any_cast<T>( &a1 );
     T* p2 = any_cast<T>( &a2 );

     assert( p1 == 0 || p1 != p2 ); // ***
   }

Thanks,
Eric


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk